コード例 #1
0
 /**
  * @test
  */
 public function nonExistingRolesReturnNull()
 {
     static::assertNull($this->roleRepository->findByLabel('No_Role'));
     static::assertNull($this->roleRepository->findById(new RoleId(1000)));
 }
コード例 #2
0
 /**
  * @param string $label
  *
  * @return null|Role
  */
 public function getRoleByLabel($label)
 {
     return $this->roleRepository->findByLabel($label);
 }