/** * @depends testCreate * @param InstitutionUser $user */ public function testFindbyId(InstitutionUser $user) { $id = $user->getAccountId(); $retrievedUser = $this->service->findById($id); $this->assertNotNull($retrievedUser, "No InstitutionUser with AccountId = {$id}"); // test invalid id $retrievedUser = $this->service->findById(time()); $this->assertNull($retrievedUser); }