/** * @return array */ public function getCompanyPeople() { $justice = new Justice(new Client()); $justiceRecord = $justice->findById($this->companyId); if ($justiceRecord) { return $justiceRecord->getPeople(); } return []; }
public function testNotFoundFindId() { $justiceRecord = $this->justice->findById(123456); $this->assertFalse($justiceRecord); }