mirror of
https://github.com/silverstripe/silverstripe-environmentcheck
synced 2024-10-22 17:05:40 +02:00
22 lines
515 B
PHP
22 lines
515 B
PHP
<?php
|
|
|
|
/**
|
|
* @mixin PHPUnit_Framework_TestCase
|
|
*/
|
|
class ExternalURLCheckTest extends SapphireTest
|
|
{
|
|
public function testCheckReportsMissingPages()
|
|
{
|
|
$this->markTestSkipped('ExternalURLCheck seems faulty on some systems');
|
|
|
|
$check = new ExternalURLCheck('http://missing-site/');
|
|
|
|
$expected = array(
|
|
EnvironmentCheck::ERROR,
|
|
'Success retrieving "http://missing-site/" (Code: 404)',
|
|
);
|
|
|
|
$this->assertEquals($expected, $check->check());
|
|
}
|
|
}
|