MINOR Fix test to use the non deprecated way of fetching database records

This commit is contained in:
Stig Lindqvist 2011-10-22 16:47:39 +02:00
parent a2c7175caa
commit d6f7b55f04

View File

@ -66,8 +66,8 @@ class LookupFieldTest extends SapphireTest {
$member2 = $this->objFromFixture('Member', 'member2'); $member2 = $this->objFromFixture('Member', 'member2');
$member3 = $this->objFromFixture('Member', 'member3'); $member3 = $this->objFromFixture('Member', 'member3');
$source = new SQLMap(singleton('Member')->buildSQL()); $source = DataObject::get('Member');
$f = new LookupField('test', 'test', $source); $f = new LookupField('test', 'test', $source->map());
$f->setValue(array($member1->ID, $member2->ID)); $f->setValue(array($member1->ID, $member2->ID));
$this->assertEquals( $this->assertEquals(
sprintf( sprintf(