Phalcon\Test\Integration\Mvc\ApplicationCest::singleModule PHP Method

singleModule() public method

public singleModule ( IntegrationTester $I )
$I IntegrationTester
    public function singleModule(IntegrationTester $I)
    {
        $I->wantTo('handle request and get content by using single modules strategy');
        $di = new FactoryDefault();
        $di->set('view', function () {
            $view = new View();
            $view->setViewsDir(PATH_DATA . 'views/');
            return $view;
        }, true);
        $application = new Application();
        $application->setDI($di);
        $_GET['_url'] = '/test2';
        $I->assertEquals('<html>We are here</html>' . PHP_EOL, $application->handle()->getContent());
    }