lithium\tests\cases\console\command\RouteTest::testRouteLoading PHP Method

testRouteLoading() public method

Test if the routes.php file is loaded correctly and the routes are connected to the router.
public testRouteLoading ( )
    public function testRouteLoading()
    {
        $this->assertEmpty(Router::get(null, true));
        $command = new Route(array('routes' => $this->_config['routes']));
        $this->assertCount(4, Router::get(null, true));
        Router::reset();
        $request = new Request();
        $request->params['env'] = 'production';
        $command = new Route(compact('request') + array('routes' => $this->_config['routes']));
        $this->assertCount(2, Router::get(null, true));
    }