From f39ee67c4af882f641c6565900836b9590414278 Mon Sep 17 00:00:00 2001 From: Sean Harvey Date: Mon, 6 May 2013 23:24:41 +1200 Subject: [PATCH] Fixing test for postgres, make sure the array is indexed from 0 --- tests/FileSubsitesTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/FileSubsitesTest.php b/tests/FileSubsitesTest.php index f8d4da1..943e8cc 100644 --- a/tests/FileSubsitesTest.php +++ b/tests/FileSubsitesTest.php @@ -59,7 +59,7 @@ class FileSubsitesTest extends BaseSubsiteTest { $file = new Folder(); - $source = $file->getCMSFields()->dataFieldByName('SubsiteID')->getSource(); + $source = array_values($file->getCMSFields()->dataFieldByName('SubsiteID')->getSource()); asort($source); $this->assertEquals(array(