Update TagFieldTest.php

This commit is contained in:
Myles Derham 2016-11-24 12:18:35 +13:00 committed by GitHub
parent 59078749bb
commit a75eab8801

View File

@ -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);