Extends
lithium\test\Unit
Tests calling `Controller::render()` with parameters to render an alternate template from
the default.
Returns
voidSource
public function testRenderWithAlternateTemplate() {
$postsController = new MockPostsController(array('classes' => array(
'media' => 'lithium\tests\mocks\action\MockMediaClass'
)));
$result = $postsController(null, array('action' => 'view2'));
$this->assertEqual('view', $result->options['template']);
$this->assertEqual('default', $result->options['layout']);
$result = $postsController(null, array('action' => 'view3'));
$this->assertEqual('view', $result->options['template']);
$this->assertFalse($result->options['layout']);
}