Browse Source

Trying to see if Articles->Tags exists

Patrick Conroy 11 years ago
parent
commit
dfe379db68
1 changed files with 3 additions and 2 deletions
  1. 3 2
      tests/TestCase/Controller/ControllerTest.php

+ 3 - 2
tests/TestCase/Controller/ControllerTest.php

@@ -888,8 +888,9 @@ class ControllerTest extends TestCase {
 		$testTags = [2, 3];
 		$Controller = new Controller($request, $response);
 		$Controller->loadModel('Articles');
-		$Controller->constructClasses();
-
+		$this->assertInstanceOf('Cake\ORM\Table', $Controller->Articles);
+		$this->assertInstanceOf('Cake\ORM\Association\BelongsToMany', $Controller->Articles->Tags);
+		
 		$Controller->paginate = [
 			'Articles' => [
 				'finder' => 'customTags',