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