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

update fnac summary

parent dd3b7b90
2 merge requests!999Master,!998Stable
......@@ -59,7 +59,7 @@ class Class_WebService_Fnac extends Class_WebService_Abstract {
public function getUrlLireLaSuite($data) {
$pos = striPos($data,"summary");
$pos = ($pos = striPos($data,"summary")) ? $pos : striPos($data, 'resume');
if(!$pos)
return '';
......
......@@ -80,6 +80,11 @@ class FnacMilleniumTest extends FnacTestCase {
->whenCalled('open_url')
->with('http://livre.fnac.com/a1891354/Millenium-Tome-2-La-fille-qui-revait-d-un-bidon-d-essence-et-d-une-allumette-Stieg-Larsson?NUMERICAL=Y#FORMAT=ePub')
->answers(file_get_contents(realpath(dirname(__FILE__)). '/../../../fixtures/fnac_millenium_suite.html'))
->whenCalled('open_url')
->with('http://livre.fnac.com/a1891354/Millenium-Tome-2-La-fille-qui-revait-d-un-bidon-d-essence-et-d-une-allumette-Stieg-Larsson#ficheResume')
->answers(file_get_contents(realpath(dirname(__FILE__)). '/../../../fixtures/fnac_millenium_suite.html'))
->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