diff --git a/tests/TestCase/Controller/ControllerTest.php b/tests/TestCase/Controller/ControllerTest.php index 5cb408779c2..4a766d5ec80 100644 --- a/tests/TestCase/Controller/ControllerTest.php +++ b/tests/TestCase/Controller/ControllerTest.php @@ -888,8 +888,9 @@ public function testPaginateSendsFinderOptions() { $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',