Skip to content

Commit

Permalink
Update test
Browse files Browse the repository at this point in the history
  • Loading branch information
jmleroux committed Feb 17, 2023
1 parent 176e8b6 commit 9883ef1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/Integration/Api/Project/RecentBuildsForProjectTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,13 @@ public function testMaxResults()
$personalToken = $_ENV['CIRCLECI_PERSONNAL_TOKEN'];
$client = new Client($personalToken, 'v1.1');
$query = new RecentBuildsForProject($client);
$builds = $this->executeWithRetry($query, ['github', 'jmleroux', 'circleci-php-client', [], 10]);
$this->assertCount(10, $builds);
$builds = $this->executeWithRetry($query, ['github', 'jmleroux', 'circleci-php-client', [], 5]);
$this->assertCount(5, $builds);

$builds = $query->execute('github', 'jmleroux', 'circleci-php-client', [], 50);
$this->assertCount(50, $builds);
$builds = $query->execute('github', 'jmleroux', 'circleci-php-client', [], 10);
$this->assertCount(10, $builds);

$builds = $query->execute('github', 'jmleroux', 'circleci-php-client', ['limit' => 5], 22);
$this->assertCount(22, $builds);
$builds = $query->execute('github', 'jmleroux', 'circleci-php-client', ['limit' => 5], 8);
$this->assertCount(8, $builds);
}
}

0 comments on commit 9883ef1

Please sign in to comment.