protected function createEmptyGroup() { $group = new Group('Empty group'); $group->addLabel('en', 'Empty group'); $group->addLabel('fr', 'Groupe vide'); $group->setSite($this->getReference('site3')); return $group; }
/** * @param string $language * @param string $value * * @dataProvider provideLabelLanguageAndValue */ public function testLabels($language, $value) { $this->group->addLabel($language, $value); $this->assertSame($value, $this->group->getLabel($language)); }