function testItDisplaysValuesFromRelations() { $record = $this->getNewTagFieldTestBlogPost('BlogPost1'); $record->write(); $form = new Form(new TagFieldTestController($record), 'Form', new FieldList($field = new TagField('Tags', '', new DataList('TagFieldTestBlogTag'))), new FieldList()); $form->loadDataFrom($this->objFromFixture('TagFieldTestBlogPost', 'BlogPost2')); $this->assertEquals($field->Value(), array(1 => 1, 2 => 2)); }