Skip to content

Commit

Permalink
BUG Fix test that relies on implicit ID order breaking postgres
Browse files Browse the repository at this point in the history
  • Loading branch information
Damian Mooyman committed Jun 7, 2018
1 parent 1658fe7 commit e37e3e1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/php/ORM/DataObjectDuplicationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,14 +151,14 @@ public function testDuplicateManyManyClasses()
$oneCopy->twos()->Count(),
"Many-to-one relation not copied (has_many)"
);
$this->assertEquals(
$this->assertContains(
$three->ID,
$oneCopy->threes()->First()->ID,
$oneCopy->threes()->column('ID'),
"Match between relation of copy and the original"
);
$this->assertEquals(
$this->assertContains(
$one->ID,
$threeCopy->ones()->First()->ID,
$threeCopy->ones()->column('ID'),
"Match between relation of copy and the original"
);

Expand Down

0 comments on commit e37e3e1

Please sign in to comment.