lithium\tests\cases\console\DispatcherTest::testRunWithAction PHP Method

testRunWithAction() public method

public testRunWithAction ( )
    public function testRunWithAction()
    {
        $response = Dispatcher::run(new Request(array('args' => array('lithium\\tests\\mocks\\console\\MockDispatcherCommand', 'testAction'))));
        $expected = 'testAction';
        $result = $response->testAction;
        $this->assertEqual($expected, $result);
    }