silverstripe-environmentcheck/tests/DevCheckControllerTest.php

19 lines
401 B
PHP
Raw Normal View History

2015-09-11 09:13:48 +12:00
<?php
/**
* @mixin PHPUnit_Framework_TestCase
*/
2015-11-21 19:18:35 +13:00
class DevCheckControllerTest extends SapphireTest
{
2016-07-12 14:08:29 +12:00
protected $usesDatabase = true;
2015-11-21 19:18:35 +13:00
public function testIndexCreatesChecker()
{
$controller = new DevCheckController();
2015-09-11 09:13:48 +12:00
2015-11-21 19:18:35 +13:00
$request = new SS_HTTPRequest('GET', 'example.com');
2015-09-11 09:13:48 +12:00
2015-11-21 19:18:35 +13:00
$this->assertInstanceOf('EnvironmentChecker', $controller->index($request));
}
2015-09-11 09:13:48 +12:00
}