Returns the recently created companies
public getRecentlyCreated ( array $params = [] ) : |
||
$params | array | Array of optional parameters ['count', 'offset'] |
return |
/** @test */ public function getRecentlyCreatedWithCountAndOffset() { $params = ['count' => 2, 'offset' => 1]; $response = $this->companies->getRecentlyCreated($params); $this->assertEquals(200, $response->getStatusCode()); $this->assertCount(2, $response['results']); $this->assertEquals(3, $response['offset']); }