/** * Get the account object by id, or false * * @param int $id * @return Account|null */ public static function findById($id) { $account = new Account($id); if (!$account->getIdentity()) { return null; } else { return $account; } }
public function testAccountHasIdentity() { $account = new Account($this->testAccountId); $this->assertNotEmpty($account->getIdentity()); }