Exemple #1
0
 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());
 }