/** * @test * @group userservice */ public function should_throw_org_not_found() { $this->setExpectedException('Bakgat\\Notos\\Domain\\Model\\Identity\\Exceptions\\OrganizationNotFoundException'); $orgId = 1; $this->orgRepo->shouldReceive('organizationOfId')->with($orgId)->andReturnNull(); $users = $this->userService->getUsers($orgId); }
/** * Returns all basic information of users within an organization * * @param $orgId * @return mixed */ public function index($orgId) { //$domain = str_replace('_', '.', $domain); return $this->jsonResponse($this->userService->getUsers($orgId)); }