mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUG Fix test that relies on implicit ID order breaking postgres
This commit is contained in:
parent
1658fe7617
commit
e37e3e1746
@ -151,14 +151,14 @@ class DataObjectDuplicationTest extends SapphireTest
|
|||||||
$oneCopy->twos()->Count(),
|
$oneCopy->twos()->Count(),
|
||||||
"Many-to-one relation not copied (has_many)"
|
"Many-to-one relation not copied (has_many)"
|
||||||
);
|
);
|
||||||
$this->assertEquals(
|
$this->assertContains(
|
||||||
$three->ID,
|
$three->ID,
|
||||||
$oneCopy->threes()->First()->ID,
|
$oneCopy->threes()->column('ID'),
|
||||||
"Match between relation of copy and the original"
|
"Match between relation of copy and the original"
|
||||||
);
|
);
|
||||||
$this->assertEquals(
|
$this->assertContains(
|
||||||
$one->ID,
|
$one->ID,
|
||||||
$threeCopy->ones()->First()->ID,
|
$threeCopy->ones()->column('ID'),
|
||||||
"Match between relation of copy and the original"
|
"Match between relation of copy and the original"
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user