Skip to content
Snippets Groups Projects
Commit 76e734dd authored by Arthur Suzuki's avatar Arthur Suzuki
Browse files

hotline #87438 : Nanook : fetch suggestions no longer require authentication

parent 2f05d538
Branches
Tags
3 merge requests!3297WIP: Master,!3047Hotline,!3019hotline #87438 : Nanook : fetch suggestions no longer require authentication
Pipeline #6400 passed with stage
in 1 hour, 5 minutes, and 4 seconds
- ticket #87438 : SIGB Nanook, suggestions d'achat : correction de la récupération de la liste des suggestions
\ No newline at end of file
...@@ -332,9 +332,6 @@ class Class_Webservice_SIGB_Nanook_Service extends Class_WebService_SIGB_Abstrac ...@@ -332,9 +332,6 @@ class Class_Webservice_SIGB_Nanook_Service extends Class_WebService_SIGB_Abstrac
public function suggestionsOf($user) { public function suggestionsOf($user) {
if (!$this->ilsdiAuthenticatePatron($user))
return $this->_error($this->_('Échec de l\'authentification par le webservice'));
return $this->getSuggestionsFromilsdiPatronInfo(['patronId' => $user->getIdSigb()], return $this->getSuggestionsFromilsdiPatronInfo(['patronId' => $user->getIdSigb()],
Class_WebService_SIGB_Nanook_PatronInfoReader::newInstance()); Class_WebService_SIGB_Nanook_PatronInfoReader::newInstance());
......
...@@ -66,10 +66,6 @@ abstract class AbstractAbonneControllerSuggestionAchatNanookTestCase extends Abs ...@@ -66,10 +66,6 @@ abstract class AbstractAbonneControllerSuggestionAchatNanookTestCase extends Abs
$this->mock_web_client = $this->mock(); $this->mock_web_client = $this->mock();
$this->mock_web_client $this->mock_web_client
->whenCalled('open_url')
->with('http://nanookService/service/AuthenticatePatron/username/francis/password/test')
->answers(NanookFixtures::albatorAuthenticatePatronResponse())
->whenCalled('open_url') ->whenCalled('open_url')
->with('http://nanookService/service/GetPatronInfo/patronId/187') ->with('http://nanookService/service/GetPatronInfo/patronId/187')
->answers(NanookFixtures::albatorPatronInfoResponse()) ->answers(NanookFixtures::albatorPatronInfoResponse())
......
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