Skip to content

Commit

Permalink
Add assertion for number of results.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Feb 19, 2015
1 parent 3b2680c commit 426937b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/TestCase/ORM/MarshallerTest.php
Expand Up @@ -1270,6 +1270,7 @@ public function testMergeManyExistQueryFails()
$marshall = new Marshaller($comments);
$result = $marshall->mergeMany($entities, $data);

$this->assertCount(3, $result);
$this->assertEquals('Changed 1', $result[0]->comment);
$this->assertEquals(1, $result[0]->user_id);
$this->assertEquals('Changed 2', $result[1]->comment);
Expand Down

0 comments on commit 426937b

Please sign in to comment.