@@ -315,7 +315,6 @@ public function testConstructClassesWithComponents() {
315
315
* @return void
316
316
*/
317
317
public function testRender () {
318
- $ this ->markTestIncomplete ('Need to sort out a few more things with the ORM first. ' );
319
318
Configure::write ('App.namespace ' , 'TestApp ' );
320
319
Plugin::load ('TestPlugin ' );
321
320
@@ -335,30 +334,7 @@ public function testRender() {
335
334
$ result = $ Controller ->render ('/Element/test_element ' );
336
335
$ this ->assertRegExp ('/this is the test element/ ' , (string )$ result );
337
336
$ Controller ->view = null ;
338
-
339
- $ Controller = new TestController ($ request , new Response ());
340
- $ Controller ->uses = ['TestPlugin.TestPluginComment ' ];
341
- $ Controller ->helpers = array ('Html ' );
342
- $ Controller ->constructClasses ();
343
- $ expected = ['title ' => 'tooShort ' ];
344
- $ Controller ->TestPluginComment ->validationErrors = $ expected ;
345
-
346
- $ Controller ->viewPath = 'Posts ' ;
347
- $ result = $ Controller ->render ('index ' );
348
- $ View = $ Controller ->View ;
349
- $ this ->assertTrue (isset ($ View ->validationErrors ['TestPluginComment ' ]));
350
- $ this ->assertEquals ($ expected , $ View ->validationErrors ['TestPluginComment ' ]);
351
-
352
- $ expectedModels = [
353
- 'TestPluginComment ' => [
354
- 'className ' => 'TestPlugin\Model\TestPluginComment '
355
- ],
356
- 'Post ' => [
357
- 'className ' => 'TestApp\Model\Post '
358
- ]
359
- ];
360
- $ this ->assertEquals ($ expectedModels , $ Controller ->request ->params ['models ' ]);
361
- }
337
+ }
362
338
363
339
/**
364
340
* test that a component beforeRender can change the controller view class.
0 commit comments