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

17 lines
360 B
PHP

<?php
/**
* @mixin PHPUnit_Framework_TestCase
*/
class DevCheckControllerTest extends SapphireTest
{
public function testIndexCreatesChecker()
{
$controller = new DevCheckController();
$request = new SS_HTTPRequest('GET', 'example.com');
$this->assertInstanceOf('EnvironmentChecker', $controller->index($request));
}
}