SevenShores\Hubspot\Tests\Integration\Resources\ContactsTest::all_with_params PHP Method

all_with_params() public method

public all_with_params ( )
    public function all_with_params()
    {
        $response = $this->contacts->all(['count' => 2, 'property' => ['firstname', 'lastname'], 'vidOffset' => 1234]);
        $this->assertEquals(200, $response->getStatusCode());
        $this->assertEquals(2, count($response->contacts));
        // $this->assertNotNull($response->contacts[0]->properties->email->value);
        // $this->assertNotNull($response->contacts[0]->properties->lastname->value);
        $this->assertGreaterThanOrEqual(1234, $response->{'vid-offset'});
    }