Skip to content

Commit e800d43

Browse files
committed
Fix unit tests
1 parent 9467619 commit e800d43

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

examples/tv/model/show.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@
2222
$repository = new TvRepository($client);
2323
$tvShow = $repository->load(1396);
2424

25-
var_dump($tvShow);
25+
var_dump($tvShow->getLanguages());

test/Tmdb/Tests/Helper/ImageHelperTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public function shouldConstructImageElement()
8787
$image->setHeight(75);
8888

8989
$this->assertEquals(
90-
'<img src="//image.tmdb.org/t/p/w45/1NfhdnQAEqcBRCulEhOFSkRrrLv.jpg" width="90" height="70" />',
90+
'<img src="//image.tmdb.org/t/p/w45/1NfhdnQAEqcBRCulEhOFSkRrrLv.jpg" width="90" height="70" title="" alt=""/>',
9191
$this->helper->getHtml($image, 'w45', 90, 70)
9292
);
9393
}
@@ -105,7 +105,7 @@ public function shouldReadImageDimensions()
105105
$image->setHeight(75);
106106

107107
$this->assertEquals(
108-
'<img src="//image.tmdb.org/t/p/w45/1NfhdnQAEqcBRCulEhOFSkRrrLv.jpg" width="100" height="75" />',
108+
'<img src="//image.tmdb.org/t/p/w45/1NfhdnQAEqcBRCulEhOFSkRrrLv.jpg" width="100" height="75" title="" alt=""/>',
109109
$this->helper->getHtml($image, 'w45')
110110
);
111111
}
@@ -123,12 +123,12 @@ public function shouldCalculateDimensions()
123123
$image->setAspectRatio(1.25);
124124

125125
$this->assertEquals(
126-
'<img src="//image.tmdb.org/t/p/w45/1NfhdnQAEqcBRCulEhOFSkRrrLv.jpg" width="63" height="50" />',
126+
'<img src="//image.tmdb.org/t/p/w45/1NfhdnQAEqcBRCulEhOFSkRrrLv.jpg" width="63" height="50" title="" alt=""/>',
127127
$this->helper->getHtml($image, 'w45', null, 50)
128128
);
129129

130130
$this->assertEquals(
131-
'<img src="//image.tmdb.org/t/p/w45/1NfhdnQAEqcBRCulEhOFSkRrrLv.jpg" width="63" height="50" />',
131+
'<img src="//image.tmdb.org/t/p/w45/1NfhdnQAEqcBRCulEhOFSkRrrLv.jpg" width="63" height="50" title="" alt=""/>',
132132
$this->helper->getHtml($image, 'w45', 63)
133133
);
134134
}
@@ -161,7 +161,7 @@ public function shouldGetImageElementByString()
161161
$imageUrl = $this->helper->getHtml('/1NfhdnQAEqcBRCulEhOFSkRrrLv.jpg');
162162

163163
$this->assertEquals(
164-
'<img src="//image.tmdb.org/t/p/original/1NfhdnQAEqcBRCulEhOFSkRrrLv.jpg" width="" height="" />',
164+
'<img src="//image.tmdb.org/t/p/original/1NfhdnQAEqcBRCulEhOFSkRrrLv.jpg" width="" height="" title="" alt=""/>',
165165
$imageUrl
166166
);
167167
}

0 commit comments

Comments
 (0)