mirror of
https://github.com/silverstripe/silverstripe-environmentcheck
synced 2024-10-22 15:05:40 +00:00
33 lines
748 B
PHP
33 lines
748 B
PHP
|
<?php
|
||
|
|
||
|
namespace SilverStripe\EnvironmentCheck\Tests\Controllers;
|
||
|
|
||
|
use SilverStripe\Control\HTTPRequest;
|
||
|
use SilverStripe\Dev\SapphireTest;
|
||
|
use SilverStripe\EnvironmentCheck\Controllers\DevCheckController;
|
||
|
|
||
|
/**
|
||
|
* Class DevCheckControllerTest
|
||
|
*
|
||
|
* @mixin PHPUnit_Framework_TestCase
|
||
|
*
|
||
|
* @package environmentcheck
|
||
|
*/
|
||
|
class DevCheckControllerTest extends SapphireTest
|
||
|
{
|
||
|
/**
|
||
|
* {@inheritDoc}
|
||
|
* @var array
|
||
|
*/
|
||
|
protected $usesDatabase = true;
|
||
|
|
||
|
public function testIndexCreatesChecker()
|
||
|
{
|
||
|
$controller = new DevCheckController();
|
||
|
|
||
|
$request = new HTTPRequest('GET', 'example.com');
|
||
|
|
||
|
$this->assertInstanceOf('SilverStripe\\EnvironmentCheck\\EnvironmentChecker', $controller->index($request));
|
||
|
}
|
||
|
}
|