diff --git a/tests/TagFieldTest.php b/tests/TagFieldTest.php index fd7dabc..5958a0f 100755 --- a/tests/TagFieldTest.php +++ b/tests/TagFieldTest.php @@ -293,7 +293,7 @@ class TagFieldTest extends SapphireTest $tag = TagFieldTestBlogTag::get()->filter('Title', 'Tag1')->first(); - $field = new TagField('Tags', '', new DataList('TagFieldTestBlogTag'), array($tag->ID, 'Tag3')); + $field = new TagField('Tags', '', new DataList('TagFieldTestBlogTag'), array($tag->Title, 'Tag3')); $field->setCanCreate(false); $field->saveInto($record);