mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR Fix test to use the non deprecated way of fetching database records
This commit is contained in:
parent
a2c7175caa
commit
d6f7b55f04
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user