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

all_with_params_and_array_access() public method

    public function all_with_params_and_array_access()
    {
        $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']['firstname']['value']);
        // $this->assertNotNull($response['contacts'][0]['properties']['lastname']['value']);
        $this->assertGreaterThanOrEqual(1234, $response['vid-offset']);
    }