1
0
mirror of https://github.com/silverstripe/silverstripe-environmentcheck synced 2024-10-22 15:05:40 +00:00
Christopher Pitt 53aafd97ba Made supported
2015-09-14 09:12:12 +12:00

18 lines
336 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());
}
}