silverstripe-environmentcheck/tests/DevCheckControllerTest.php

19 lines
401 B
PHP
Raw Normal View History

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