Skip to content

Commit 8adf445

Browse files
Striftnorkunas
andauthored
Update tests/Contracts/TasksQueryTest.php
Co-authored-by: Tomas Norkūnas <[email protected]>
1 parent 250dd47 commit 8adf445

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

tests/Contracts/TasksQueryTest.php

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,14 @@ public function testSetFrom(): void
110110
self::assertSame(['from' => 1], $data->toArray());
111111
}
112112

113-
public function testSetReverse(): void
113+
/**
114+
* @testWith [true, "true"]
115+
* [false, "false"]
116+
*/
117+
public function testSetReverse(bool $reverse, string $expected): void
114118
{
115-
$data = (new TasksQuery())->setReverse(true);
119+
$data = (new TasksQuery())->setReverse($reverse);
116120

117-
self::assertSame(['reverse' => json_encode(true)], $data->toArray());
121+
self::assertSame(['reverse' => $expected], $data->toArray());
118122
}
119123
}

0 commit comments

Comments
 (0)