Skip to content
Snippets Groups Projects
Commit 07c4c61d authored by Patrick Barroca's avatar Patrick Barroca :grin:
Browse files

rel #43603 : fix test failure

parent 7054d584
Branches
Tags
2 merge requests!1702Dev#43603 lille metro cosmogramme possibilite de pointer le code barre dans le champ 9496,!1685Dev#43603 lille metro cosmogramme possibilite de pointer le code barre dans le champ 9496
......@@ -472,10 +472,12 @@ class NoticeAjaxControllerBandeAnnonceTest extends AbstractControllerTestCase {
/** @test */
public function harryPotterWith410DollarVShouldFindTrailer() {
$key = Class_WebService_AllServices::createSecurityKey();
Class_WebService_AllServices::setHttpClient(
Storm_Test_ObjectWrapper::mock()
->whenCalled('open_url')
->with('https://websvc.afi-sa.net/afi_opac_services/main.php?titre=Harry+Potter+%C3%A0+l%27%C3%A9cole+des+sorciers&auteur=Chris+Columbus&width=500&height=400&src=410350b202bee843de4619ce5e819202&api=2.0&action=6')
->with('https://websvc.afi-sa.net/afi_opac_services/main.php?titre=Harry+Potter+%C3%A0+l%27%C3%A9cole+des+sorciers&auteur=Chris+Columbus&width=500&height=400&src=' . $key . '&api=2.0&action=6')
->answers(json_encode(['source' => 'CommeAuCinema', 'player' => '<iframe></iframe>']))
->beStrict());
......
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