From cf1a1cb6dd3e1f988995eb4ed14aa0e1f1624c0a Mon Sep 17 00:00:00 2001 From: Sean Harvey Date: Mon, 6 May 2013 23:07:16 +1200 Subject: [PATCH] Fixing test for PostgreSQL --- tests/FileSubsitesTest.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/FileSubsitesTest.php b/tests/FileSubsitesTest.php index 9d276e1..ca25c42 100644 --- a/tests/FileSubsitesTest.php +++ b/tests/FileSubsitesTest.php @@ -59,15 +59,18 @@ class FileSubsitesTest extends BaseSubsiteTest { $file = new Folder(); + $source = $file->getCMSFields()->dataFieldByName('SubsiteID')->getSource(); + asort($source); + $this->assertEquals(array( 'Main site', - 'Template', 'Subsite1 Template', 'Subsite2 Template', + 'Template', 'Test 1', 'Test 2', 'Test 3' - ), $file->getCMSFields()->dataFieldByName('SubsiteID')->getSource()); + ), $source); } }