Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Trying to see if Articles->Tags exists
  • Loading branch information
Patrick Conroy committed Aug 26, 2014
1 parent 66933e0 commit dfe379d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/TestCase/Controller/ControllerTest.php
Expand Up @@ -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',
Expand Down

0 comments on commit dfe379d

Please sign in to comment.