Browse Source

Fail with a slightly more helpful error messages.

Mark Story 10 years ago
parent
commit
602704f26d
1 changed files with 1 additions and 0 deletions
  1. 1 0
      tests/TestCase/ORM/QueryRegressionTest.php

+ 1 - 0
tests/TestCase/ORM/QueryRegressionTest.php

@@ -129,6 +129,7 @@ class QueryRegressionTest extends TestCase
             ->order(['Articles.id' => 'ASC'])
             ->toArray();
 
+        $this->assertCount(3, $results);
         $this->assertEquals(1, $results[0]->articles_tag->foo->id);
         $this->assertEquals(1, $results[0]->author->favorite_tag->id);
         $this->assertEquals(2, $results[1]->articles_tag->foo->id);