From c457c0c7a5a86d8947dd1d41db414e5b364d8d98 Mon Sep 17 00:00:00 2001 From: llaffont <llaffont@afi-sa.fr> Date: Mon, 23 Feb 2015 11:30:39 +0100 Subject: [PATCH] rd #14085 pnb fix failing test on CI --- .../WebService/Dilicom/PNBOffersParserTest.php | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/tests/library/Class/WebService/Dilicom/PNBOffersParserTest.php b/tests/library/Class/WebService/Dilicom/PNBOffersParserTest.php index c471265f1ca..78325df0030 100644 --- a/tests/library/Class/WebService/Dilicom/PNBOffersParserTest.php +++ b/tests/library/Class/WebService/Dilicom/PNBOffersParserTest.php @@ -76,12 +76,13 @@ class DilicomPNBOfferParserTest extends Storm_Test_ModelTestCase { } - /** @test */ - public function firstAlbumDownloadedThumbnailShouldBeSmallDotJpg() { - $this->_books[0]->import(); - $this->assertTrue($this->_http_client->methodHasBeenCalledWithParams('open_url', - ['http://assets.edenlivres.fr/assets/publications/23416/cover/small.jpg']), - $this->_http_client->getFirstAttributeForMethodCallAt('open_url', 0)); + /** + * @depends firstAlbumShouldBePlusJamaisSansElle + * @test + */ + public function firstAlbumThumbnailShouldBeSmallDotJpg($album) { + $this->assertEquals('http://assets.edenlivres.fr/assets/publications/23416/cover/small.jpg', + $album->getPoster()); } -- GitLab