mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Fix postgres test
This commit is contained in:
parent
779a4e2443
commit
85a712e1c9
@ -111,13 +111,21 @@ class DataObjectDuplicationTest extends SapphireTest {
|
|||||||
"Match between relation of copy and the original");
|
"Match between relation of copy and the original");
|
||||||
$this->assertEquals(0, $oneCopy->twos()->Count(),
|
$this->assertEquals(0, $oneCopy->twos()->Count(),
|
||||||
"Many-to-one relation not copied (has_many)");
|
"Many-to-one relation not copied (has_many)");
|
||||||
$this->assertEquals($three->ID, $oneCopy->threes()->First()->ID,
|
$this->assertContains(
|
||||||
"Match between relation of copy and the original");
|
$three->ID,
|
||||||
$this->assertEquals($one->ID, $threeCopy->ones()->First()->ID,
|
$oneCopy->threes()->column('ID'),
|
||||||
"Match between relation of copy and the original");
|
"Match between relation of copy and the original"
|
||||||
|
);
|
||||||
$this->assertEquals('three', $oneCopy->threes()->First()->TestExtra,
|
$this->assertContains(
|
||||||
"Match between extra field of copy and the original");
|
$one->ID,
|
||||||
|
$threeCopy->ones()->column('ID'),
|
||||||
|
"Match between relation of copy and the original"
|
||||||
|
);
|
||||||
|
$this->assertContains(
|
||||||
|
'three',
|
||||||
|
$oneCopy->threes()->column('TestExtra'),
|
||||||
|
"Match between extra field of copy and the original"
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user