mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-09-08 18:51:12 +02:00
Merge pull request #737 from simonwelsh/dotest-fix
FIX Use array_intersect() with expected values so that the order matches
This commit is contained in:
commit
8560ccede5
@ -863,7 +863,7 @@ class DataObjectTest extends SapphireTest {
|
||||
// Check that the values of those fields are properly read from the database
|
||||
$values = DataObject::get("DataObjectTest_Team", "\"DataObjectTest_Team\".\"ID\" IN
|
||||
($obj1->ID, $obj2->ID)")->column("SubclassDatabaseField");
|
||||
$this->assertEquals(array('obj1', 'obj2'), $values);
|
||||
$this->assertEquals(array_intersect($values, array('obj1', 'obj2')), $values);
|
||||
}
|
||||
|
||||
function testClassNameSetForNewObjects() {
|
||||
|
Loading…
Reference in New Issue
Block a user