Skip to content

Commit

Permalink
Add test case to exercise paging
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenmaguire committed Nov 30, 2016
1 parent a877fa0 commit 070015e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/ApiTestTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -420,11 +420,12 @@ public function testAddBoardCalendarKeyGenerate()

public function testGetBoardCards()
{
$parameters = ['before' => uniqid()];
$boardId = $this->getTestString();
$payload = $this->getSuccessPayload();
$this->prepareFor("GET", sprintf("/boards/%s/cards", $boardId), "", $payload);
$this->prepareFor("GET", sprintf("/boards/%s/cards", $boardId), http_build_query($parameters), $payload);

$result = $this->client->getBoardCards($boardId);
$result = $this->client->getBoardCards($boardId, $parameters);

$this->assertExpectedEqualsResult($payload, $result);
}
Expand Down

0 comments on commit 070015e

Please sign in to comment.