lithium\tests\cases\action\ControllerTest::testDispatchingWithExplicitControllerName PHP Method

testDispatchingWithExplicitControllerName() public method

Tests that requests which are dispotched with the controller route parameter specified as a fully-qualified class name are able to locate their templates correctly.
    public function testDispatchingWithExplicitControllerName()
    {
        $request = new Request(array('url' => '/'));
        $request->params = array('controller' => 'lithium\\tests\\mocks\\action\\MockPostsController', 'action' => 'index');
        $postsController = new MockPostsController(compact('request'));
        $postsController->__invoke($request, $request->params);
    }