updated test for min max score filters.

- related to: #334
This commit is contained in:
pushrbx 2022-12-26 11:56:39 +00:00
parent 4aa3c4c617
commit a7b4e02f55

View File

@ -387,6 +387,13 @@ class AnimeSearchEndpointTest extends TestCase
{
// test for https://github.com/jikan-me/jikan-rest/issues/309
Anime::factory(5)
->state(new Sequence(
["score" => null],
["score" => $this->faker->randomFloat(2, 1.0, 9.99)],
["score" => $this->faker->randomFloat(2, 1.0, 9.99)],
["score" => $this->faker->randomFloat(2, 1.0, 9.99)],
["score" => $this->faker->randomFloat(2, 1.0, 9.99)],
))
->overrideFromQueryStringParameters([
"genres" => "1,2"
])