Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
stanislav-janu committed Nov 9, 2023
1 parent 16bd915 commit ce41222
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/Endpoints/Contactlists/Search/RequestTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ public function testDefaultEndpoint(): void

// The query parameters to send
$query = $value['query'];
$this->assertTrue(is_array($query), 'Query must be an array');
$this->assertArrayHasKey('limit', $query);
$this->assertArrayHasKey('offset', $query);
$this->assertEquals(0, $query['offset'], 'The first page should have 0 offset');
Expand Down
2 changes: 2 additions & 0 deletions tests/Endpoints/Contacts/Search/RequestTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ public function testDefaultEndpoint(): void

// The query parameters to send
$query = $value['query'];
$this->assertTrue(is_array($query), 'Query must be an array');
$this->assertArrayHasKey('limit', $query);
$this->assertArrayHasKey('offset', $query);
$this->assertEquals(0, $query['offset'], 'The first page should have 0 offset');
Expand All @@ -57,6 +58,7 @@ public function testFilteredEndpoint(): void

// The query parameters to send
$query = $value['query'];
$this->assertTrue(is_array($query), 'Query must be an array');
$this->assertArrayHasKey('limit', $query);
$this->assertArrayHasKey('offset', $query);
$this->assertEquals(50, $query['offset'], 'The second page should the limit value');
Expand Down
2 changes: 2 additions & 0 deletions tests/Endpoints/CustomFields/Search/RequestTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ public function testDefaultEndpoint(): void

// The query parameters to send
$query = $value['query'];
$this->assertTrue(is_array($query), 'Query must be an array');
$this->assertArrayHasKey('limit', $query);
$this->assertArrayHasKey('offset', $query);
$this->assertEquals(0, $query['offset'], 'The first page should have 0 offset');
Expand All @@ -58,6 +59,7 @@ public function testFilteredEndpoint(): void

// The query parameters to send
$query = $value['query'];
$this->assertTrue(is_array($query), 'Query must be an array');
$this->assertArrayHasKey('limit', $query);
$this->assertArrayHasKey('offset', $query);
$this->assertEquals(50, $query['offset'], 'The second page should the limit value');
Expand Down

0 comments on commit ce41222

Please sign in to comment.