/** * @test */ public function shouldWatchlistMovieObject() { $repository = $this->getRepositoryWithMockedHttpAdapter(); $this->getAdapter()->expects($this->once())->method('post')->with($this->getRequest('account/' . self::ACCOUNT_ID . '/watchlist', [], 'POST', [], ['media_id' => self::MOVIE_ID, 'media_type' => 'movie', 'watchlist' => true])); $movie = new Movie(); $movie->setId(self::MOVIE_ID); $repository->watchlist(self::ACCOUNT_ID, $movie, true); }
/** * @test */ public function shouldWatchlistMovieObject() { $repository = $this->getRepositoryWithMockedHttpClient(); $movie = new Movie(); $movie->setId(self::MOVIE_ID); $repository->watchlist(self::ACCOUNT_ID, $movie, true); }