mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Merge pull request #72 from stojg/lookupfieldtest
MINOR Fix test to use the non deprecated way of fetching database records
This commit is contained in:
commit
ca29cf9b72
@ -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(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user