public function testSites() { $this->assertEquals(new ArrayCollection(), $this->user->getSites(), 'A new user has no site'); $site = new Site(); $this->user->addSite($site); $this->assertContains($site, $this->user->getSites()); }
public function testSites() { $this->assertEquals(new ArrayCollection(), $this->user->getSites(), 'A new user has no site'); $site = new Site(); $this->user->addSite($site); $this->assertContains($site, $this->user->getSites()); }