Bluz\Tests\Application\ApplicationTest::testErrorController PHP Method

testErrorController() public method

Test run Error Controller
public testErrorController ( )
    public function testErrorController()
    {
        // setup Request
        $request = new ServerRequest([], [], uniqid('module') . '/' . uniqid('controller'), Request::METHOD_GET);
        Request::setInstance($request);
        // run Application
        $this->getApp()->process();
        $this->assertEquals(Router::getErrorModule(), $this->getApp()->getModule());
        $this->assertEquals(Router::getErrorController(), $this->getApp()->getController());
    }