Bolt\Tests\Controller\Backend\DatabaseTest::testCheck PHP Method

testCheck() public method

public testCheck ( )
    public function testCheck()
    {
        $this->allowLogin($this->getApp());
        $checkResponse = new SchemaCheck();
        $check = $this->getMockSchemaManager(['check']);
        $check->expects($this->atLeastOnce())->method('check')->will($this->returnValue($checkResponse));
        $this->setService('schema', $check);
        $this->setRequest(Request::create('/bolt/dbcheck'));
        $this->checkTwigForTemplate($this->getApp(), '@bolt/dbcheck/dbcheck.twig');
        $this->controller()->check($this->getRequest());
    }