/** * @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); }
/** * @param $orgId * @return \Doctrine\Common\Collections\ArrayCollection * @throws OrganizationNotFoundException */ public function getUsers($orgId) { $organization = $this->organizationOfId($orgId); return $this->userRepo->all($organization); }