Ejemplo n.º 1
0
 /**
  * @test
  * @group userrepo
  */
 public function should_have_empty_users_when_foo_organization_found()
 {
     $n_foo = new Name('foo');
     $dn_foo = new DomainName('bar.be');
     $organization = new Organization($n_foo, $dn_foo);
     $users = $this->userRepo->all($organization);
     $this->assertEmpty($users);
 }
Ejemplo n.º 2
0
 /**
  * @param $orgId
  * @return \Doctrine\Common\Collections\ArrayCollection
  * @throws OrganizationNotFoundException
  */
 public function getUsers($orgId)
 {
     $organization = $this->organizationOfId($orgId);
     return $this->userRepo->all($organization);
 }