silverstripe-environmentcheck/tests/checks/URLCheckTest.php
2015-11-21 19:18:35 +13:00

20 lines
388 B
PHP

<?php
/**
* @mixin PHPUnit_Framework_TestCase
*/
class URLCheckTest extends SapphireTest
{
public function testCheckReportsMissingPages()
{
$check = new URLCheck('foo', 'bar');
$expected = array(
EnvironmentCheck::ERROR,
'Error retrieving "foo" (Code: 404)',
);
$this->assertEquals($expected, $check->check());
}
}