Skip to content
Snippets Groups Projects
Commit 9ac5c0cb authored by Ghislain Loas's avatar Ghislain Loas
Browse files

hotline #32233 fix tests failures

parent 549df110
Branches
Tags
5 merge requests!1267Master,!1266Master,!1265Hotline master,!1263Stable,!1256Hotline#32233 fix thumb url in oai export
......@@ -16,7 +16,7 @@
*
* You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
* along with BOKEH; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
......@@ -87,7 +87,7 @@ class ZendAfi_View_Helper_MoteurRecherche_Resultat_TimelineJsonVisitorTest exten
/** @test */
public function firstNoticeHeadlineShouldContainsHarryPotterPrisonnierAzkaban() {
$this->assertContains('Harry Potter et le prisonnier d\'Azkaban',
$this->assertContains('Harry Potter et le prisonnier d\'Azkaban',
$this->_json->timeline->date[0]->headline);
}
......@@ -100,27 +100,27 @@ class ZendAfi_View_Helper_MoteurRecherche_Resultat_TimelineJsonVisitorTest exten
/** @test */
public function firstNoticeTextShouldContainsLinkToNotice() {
$this->assertContains('/recherche/viewnotice/clef/POTTER/id/2',
$this->assertContains('/recherche/viewnotice/clef/POTTER/id/2',
$this->_json->timeline->date[0]->text);
}
/** @test */
public function secondNoticeTextShouldBeSekouEstRenvoye() {
$this->assertContains('Sékou est renvoyé de l\'usine parce qu\'il a osé',
$this->assertContains('Sékou est renvoyé de l\'usine parce qu\'il a osé',
$this->_json->timeline->date[1]->text);
}
/** @test */
public function firstNoticeThumbnailShouldBeHpDotPng() {
$this->assertEquals('hp.png', $this->_json->timeline->date[0]->asset->thumbnail);
$this->assertContains('hp.png', $this->_json->timeline->date[0]->asset->thumbnail);
}
/** @test */
public function firstNoticeMediaShouldBeHpBigDotPng() {
$this->assertEquals('hp_big.png', $this->_json->timeline->date[0]->asset->media);
$this->assertContains('hp_big.png', $this->_json->timeline->date[0]->asset->media);
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment