BUG Fix test that relies on implicit ID order breaking postgres

This commit is contained in:
Damian Mooyman 2018-06-08 11:23:24 +12:00
parent 1658fe7617
commit e37e3e1746
No known key found for this signature in database
GPG Key ID: 78B823A10DE27D1A

View File

@ -151,14 +151,14 @@ class DataObjectDuplicationTest extends SapphireTest
$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"
);