Merge pull request #2473 from ajshort/pull-1

Fix test relying on specific member title format.
This commit is contained in:
Ingo Schommer 2013-10-02 02:37:16 -07:00
commit 26ef1c1830

View File

@ -66,10 +66,11 @@ class LookupFieldTest extends SapphireTest {
$member1 = $this->objFromFixture('Member', 'member1');
$member2 = $this->objFromFixture('Member', 'member2');
$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>'