diff --git a/tests/TestCase/Controller/ControllerTest.php b/tests/TestCase/Controller/ControllerTest.php index 649abe05cf4..c675c094632 100644 --- a/tests/TestCase/Controller/ControllerTest.php +++ b/tests/TestCase/Controller/ControllerTest.php @@ -315,7 +315,6 @@ public function testConstructClassesWithComponents() { * @return void */ public function testRender() { - $this->markTestIncomplete('Need to sort out a few more things with the ORM first.'); Configure::write('App.namespace', 'TestApp'); Plugin::load('TestPlugin'); @@ -335,30 +334,7 @@ public function testRender() { $result = $Controller->render('/Element/test_element'); $this->assertRegExp('/this is the test element/', (string)$result); $Controller->view = null; - - $Controller = new TestController($request, new Response()); - $Controller->uses = ['TestPlugin.TestPluginComment']; - $Controller->helpers = array('Html'); - $Controller->constructClasses(); - $expected = ['title' => 'tooShort']; - $Controller->TestPluginComment->validationErrors = $expected; - - $Controller->viewPath = 'Posts'; - $result = $Controller->render('index'); - $View = $Controller->View; - $this->assertTrue(isset($View->validationErrors['TestPluginComment'])); - $this->assertEquals($expected, $View->validationErrors['TestPluginComment']); - - $expectedModels = [ - 'TestPluginComment' => [ - 'className' => 'TestPlugin\Model\TestPluginComment' - ], - 'Post' => [ - 'className' => 'TestApp\Model\Post' - ] - ]; - $this->assertEquals($expectedModels, $Controller->request->params['models']); - } + } /** * test that a component beforeRender can change the controller view class.