AdamStipak\ActionDetectorTest::testAction PHP Method

testAction() public method

public testAction ( $method, $action )
$method
$action
    public function testAction($method, $action)
    {
        $route = new RestRoute();
        $url = new UrlScript();
        $url->setPath('/foo');
        $request = new Request($url, NULL, NULL, NULL, NULL, NULL, $method);
        $appRequest = $route->match($request);
        $this->assertEquals('Foo', $appRequest->getPresenterName());
        $this->assertEquals($action, $appRequest->parameters['action']);
    }