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

testManuallySettingTemplate() public method

Tests that $_render['template'] can be manually set in a controller action and will not be overwritten.
    public function testManuallySettingTemplate()
    {
        $postsController = new MockPostsController(array('classes' => array('media' => 'lithium\\tests\\mocks\\action\\MockMediaClass')));
        $postsController(new Request(), array('action' => 'changeTemplate'));
        $result = $postsController->access('_render');
        $this->assertEqual('foo', $result['template']);
    }