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

testShowWithEnvironment() public method

Test the show command with a env param.
    public function testShowWithEnvironment()
    {
        $request = new Request();
        $request->params = array('env' => 'production', 'args' => array('/test'));
        $command = new Route(compact('request') + array('routes' => $this->_config['routes'], 'classes' => array('response' => 'lithium\\tests\\mocks\\console\\MockResponse')));
        $command->show();
        $expected = "No route found.\n";
        $this->assertEqual($expected, $command->response->output);
    }