summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2020-05-14 00:24:46 +0200
committeremkael <emkael@tlen.pl>2020-05-14 00:24:46 +0200
commitb6cc0b7cf36820b6b31276468b05f00ca4b4ad4f (patch)
tree42f72e67b3dc1728d871a6d2502aea9e65e39698 /test
parent5ea893e358c47f7bd78c95405a14c6a5fada4ff4 (diff)
Boards count instead of over/under parameter
Diffstat (limited to 'test')
-rw-r--r--test/ApiTest.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/ApiTest.php b/test/ApiTest.php
index 93ed024..158c9dc 100644
--- a/test/ApiTest.php
+++ b/test/ApiTest.php
@@ -18,6 +18,15 @@ class ApiTest extends TestCase {
}
}
+ /**
+ * @dataProvider generatedDataProvider
+ */
+ public function testBoardCounts($input, $expected) {
+ $input['boards'] = strval($input['over39_boards'] ? rand(40, 60) : rand(1, 39));
+ unset($input['over39_boards']);
+ $this->testRandomResults($input, $expected);
+ }
+
public function generatedDataProvider() {
$contents = file(dirname(__FILE__) . '/tests.txt');
$count = count($contents) / 2;