From ff45f7ce4d1b0176c303d8a6c8d3ef9e18570c90 Mon Sep 17 00:00:00 2001 From: Simon Welsh Date: Fri, 5 Jul 2013 11:45:34 +1200 Subject: [PATCH] DataListTest should not rely on order of values when not explictly sorting --- tests/model/DataListTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/model/DataListTest.php b/tests/model/DataListTest.php index 456d48120..a96e2a6a8 100644 --- a/tests/model/DataListTest.php +++ b/tests/model/DataListTest.php @@ -625,7 +625,8 @@ class DataListTest extends SapphireTest { )); $this->assertEquals(2, $list->count()); - $this->assertEquals(array('Joe', 'Bob'), $list->column('Name')); + $values = $list->column('Name'); + $this->assertEquals(array_intersect($values, array('Joe', 'Bob')), $values); } public function testFilterAndExcludeById() {