mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 09:05:55 +00:00
Fixing test for PostgreSQL
This commit is contained in:
parent
a6990394cc
commit
cf1a1cb6dd
@ -59,15 +59,18 @@ class FileSubsitesTest extends BaseSubsiteTest {
|
|||||||
|
|
||||||
$file = new Folder();
|
$file = new Folder();
|
||||||
|
|
||||||
|
$source = $file->getCMSFields()->dataFieldByName('SubsiteID')->getSource();
|
||||||
|
asort($source);
|
||||||
|
|
||||||
$this->assertEquals(array(
|
$this->assertEquals(array(
|
||||||
'Main site',
|
'Main site',
|
||||||
'Template',
|
|
||||||
'Subsite1 Template',
|
'Subsite1 Template',
|
||||||
'Subsite2 Template',
|
'Subsite2 Template',
|
||||||
|
'Template',
|
||||||
'Test 1',
|
'Test 1',
|
||||||
'Test 2',
|
'Test 2',
|
||||||
'Test 3'
|
'Test 3'
|
||||||
), $file->getCMSFields()->dataFieldByName('SubsiteID')->getSource());
|
), $source);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user