Skip to content

Commit

Permalink
fix: update test film data
Browse files Browse the repository at this point in the history
  • Loading branch information
hmerritt committed Aug 14, 2023
1 parent 7639363 commit c2abc31
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/ImdbTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ public function testFilm()
$this->assertEquals('Sci-Fi', $film['genres'][2]);
$this->assertEquals('2h 49m', $film['length']);
$this->assertEquals('2014', $film['year']);
$this->assertEquals("A team of explorers travel through a wormhole in space in an attempt to ensure humanity's survival.", $film['plot']);
$this->assertEquals('8.6', $film['rating']);
$this->assertEquals("When Earth becomes uninhabitable in the future, a farmer and ex-NASA pilot, Joseph Cooper, is tasked to pilot a spacecraft, along with a team of researchers, to find a new planet for humans.", $film['plot']);
$this->assertEquals('8.7', $film['rating']);
$this->assertEquals('vi1586278169', $film['trailer']["id"]);
$this->assertEquals('https://www.imdb.com/video/vi1586278169', $film['trailer']["link"]);
$this->assertContains($film['cast'][0]["character"], ['Cooper']);
Expand All @@ -41,8 +41,8 @@ public function testFilmBySearching()
$this->assertEquals('Sci-Fi', $film['genres'][2]);
$this->assertEquals('2h 49m', $film['length']);
$this->assertEquals('2014', $film['year']);
$this->assertEquals("A team of explorers travel through a wormhole in space in an attempt to ensure humanity's survival.", $film['plot']);
$this->assertEquals('8.6', $film['rating']);
$this->assertEquals("When Earth becomes uninhabitable in the future, a farmer and ex-NASA pilot, Joseph Cooper, is tasked to pilot a spacecraft, along with a team of researchers, to find a new planet for humans.", $film['plot']);
$this->assertEquals('8.7', $film['rating']);
$this->assertEquals('vi1586278169', $film['trailer']["id"]);
$this->assertEquals('https://www.imdb.com/video/vi1586278169', $film['trailer']["link"]);
$this->assertContains($film['cast'][0]["character"], ['Cooper']);
Expand Down

0 comments on commit c2abc31

Please sign in to comment.