コード例 #1
0
ファイル: AccountTest.php プロジェクト: nxpthx/FLOW3
 /**
  * @test
  */
 public function hasRoleWorksOnRoleInstancesWithTheSameIdentifier()
 {
     $account = new Account();
     $account->addRole(new Role('role1'));
     $this->assertEquals(array($this->role1), $account->getRoles());
 }