'foo bar', //tag used for EntryControllerTest 'bar-tag' => 'bar', 'baz-tag' => 'baz', // tag used for ExportControllerTest 'foo-tag' => 'foo', 'bob-tag' => 'bob', // tag used for TagRestControllerTest ]; foreach ($tags as $reference => $label) { $tag = new Tag(); $tag->setLabel($label); $manager->persist($tag); $this->addReference($reference, $tag); } $manager->flush(); } /** * {@inheritdoc} */ public function getOrder() { return 25; } }