Skip to content

Commit

Permalink
Set the tagGroup in test
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Jan 4, 2023
1 parent abb860e commit 2957950
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,10 @@ public function testWithTagType()
{
$tags = ['test-publication' => ['foo', 'bar', 'baz']];
$this->file('tags.json', json_encode($tags));
$this->updateSchema('tag', 'tag');
$this->pubType->fields = [
(new PublicationFieldDefinition('tag', 'tag', tagGroup: 'test-publication'))->toArray(),
];
$this->pubType->save();
(new SeedsPublicationFiles($this->pubType))->create();

$publication = $this->firstPublication();
Expand Down

0 comments on commit 2957950

Please sign in to comment.