From d6f7b55f04bf987e16663715952f54982d202594 Mon Sep 17 00:00:00 2001 From: Stig Lindqvist Date: Sat, 22 Oct 2011 16:47:39 +0200 Subject: [PATCH] MINOR Fix test to use the non deprecated way of fetching database records --- tests/forms/LookupFieldTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/forms/LookupFieldTest.php b/tests/forms/LookupFieldTest.php index 2a05462f6..a28a5bb2c 100644 --- a/tests/forms/LookupFieldTest.php +++ b/tests/forms/LookupFieldTest.php @@ -66,8 +66,8 @@ class LookupFieldTest extends SapphireTest { $member2 = $this->objFromFixture('Member', 'member2'); $member3 = $this->objFromFixture('Member', 'member3'); - $source = new SQLMap(singleton('Member')->buildSQL()); - $f = new LookupField('test', 'test', $source); + $source = DataObject::get('Member'); + $f = new LookupField('test', 'test', $source->map()); $f->setValue(array($member1->ID, $member2->ID)); $this->assertEquals( sprintf(