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:
Andrew Short 2013-10-02 15:16:33 +10:00
parent 92e98f0adb
commit c26c9e641a

View File

@ -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>'