예제 #1
0
파일: UserTest.php 프로젝트: Nenuial/Yrch
 public function testFavorites()
 {
     $this->assertEquals(new ArrayCollection(), $this->user->getFavorites(), 'A new user has no favorite');
     $site = new Site();
     $this->user->addFavorite($site);
     $this->assertContains($site, $this->user->getFavorites());
     $this->assertTrue($this->user->isFavorite($site));
 }