/** * @test */ public function shouldCreateValidQuery() { $query = new DiscoverTvQuery(); $now = new \DateTime(); $query->page(1)->language('en')->sortBy('sort')->firstAirDateYear($now)->voteCountGte(5)->voteAverageGte(3)->withGenres([15, 18])->withGenresOr([1, 2])->withGenresAnd([18])->firstAirDateGte($now)->firstAirDateLte($now)->withNetworks([1, 2])->withNetworksAnd([1, 2, 3]); $this->assertEquals(10, count($query)); }