/** * test site */ public function testSite() { $this->assertNull($this->group->getSite()); $site = Phake::mock('OpenOrchestra\\ModelInterface\\Model\\SiteInterface'); $this->group->setSite($site); $this->assertSame($site, $this->group->getSite()); }
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; }