Skip to content

Commit c035c79

Browse files
committed
Added discover query tests for watch providers
1 parent 5a92fc2 commit c035c79

2 files changed

Lines changed: 10 additions & 4 deletions

File tree

test/Tmdb/Tests/Model/Query/Discover/DiscoverMoviesQueryTest.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,12 @@ public function shouldCreateValidQuery()
4444
->releaseDateLte($now)
4545
->certificationCountry('NL')
4646
->certificationLte(1)
47-
->withCompanies([1]);
47+
->withCompanies([1])
48+
->watchRegion('US')
49+
->withWatchProviders([8])
50+
->withWatchMonetizationTypes(['flatrate']);
4851

49-
$this->assertEquals(14, count($query));
52+
$this->assertEquals(17, count($query));
5053
}
5154

5255
/**

test/Tmdb/Tests/Model/Query/Discover/DiscoverTvQueryTest.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,11 @@ public function shouldCreateValidQuery()
4141
->firstAirDateGte($now)
4242
->firstAirDateLte($now)
4343
->withNetworks([1, 2])
44-
->withNetworksAnd([1, 2, 3]);
44+
->withNetworksAnd([1, 2, 3])
45+
->watchRegion('US')
46+
->withWatchProviders([8])
47+
->withWatchMonetizationTypes(['flatrate']);
4548

46-
$this->assertEquals(10, count($query));
49+
$this->assertEquals(13, count($query));
4750
}
4851
}

0 commit comments

Comments
 (0)