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

testRenderWithNamespacedController() public method

Tests that requests where the controller class is specified manually continue to route to the correct template path.
    public function testRenderWithNamespacedController()
    {
        $request = new Request();
        $request->params['controller'] = 'lithium\\tests\\mocks\\action\\MockPostsController';
        $controller = new MockPostsController(compact('request') + array('classes' => array('media' => 'lithium\\tests\\mocks\\action\\MockMediaClass')));
        $controller->render();
        $this->assertEqual('mock_posts', $controller->response->options['controller']);
    }