mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Fix test relying on specific member title format.
If a custom member title format was used, the test would fail as it only expected the default member title format.
This commit is contained in:
parent
92e98f0adb
commit
c26c9e641a
@ -68,8 +68,9 @@ class LookupFieldTest extends SapphireTest {
|
||||
$member3 = $this->objFromFixture('Member', 'member3');
|
||||
|
||||
$source = DataObject::get('Member');
|
||||
$f = new LookupField('test', 'test', $source->map());
|
||||
$f = new LookupField('test', 'test', $source->map('ID', 'FirstName'));
|
||||
$f->setValue(array($member1->ID, $member2->ID));
|
||||
|
||||
$this->assertEquals(
|
||||
sprintf(
|
||||
'<span class="readonly" id="test">member1, member2</span>'
|
||||
|
Loading…
Reference in New Issue
Block a user