Extends
lithium\test\Unit
Tests that `$_render['template']` can be manually set in a controller action and will not be
overwritten.
Returns
voidSource
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']);
}