Commit dbf22b88 authored by Laurent's avatar Laurent

hotline #94887 Waterbear: does not provides pickup locations

parent 453ffdcd
Pipeline #7680 failed with stage
in 32 minutes and 36 seconds
- ticket #94887 : SIGB Waterbear: correction du fonctionnement des réservations
\ No newline at end of file
......@@ -33,4 +33,8 @@ class Class_Webservice_SIGB_Waterbear_Service extends Class_WebService_SIGB_Nano
$reader);
}
public function providesPickupLocations() {
return false;
}
}
......@@ -23,10 +23,8 @@ include_once 'tests/fixtures/WaterbearFixtures.php';
class WaterbearGetServiceTest extends ModelTestCase {
protected $_storm_default_to_volatile = true;
public function setUp() {
parent::setUp();
Class_WebService_SIGB_Waterbear::reset();
$this->service = Class_WebService_SIGB_Waterbear::getService(
['url_serveur' => 'http://waterbear.org/bib_ws.php?module=externe/ilsdi/']);
......@@ -45,10 +43,18 @@ class WaterbearGetServiceTest extends ModelTestCase {
$this->assertEquals('http://waterbear.org/bib_ws.php?module=externe/ilsdi/',
$this->service->getServerRoot());
}
/** @test */
public function serviceShouldNotProvidesPickupLocations() {
$this->service->setLogger($this->mock()->beStrict());
$this->assertFalse($this->service->providesPickupLocations());
}
}
abstract class WaterbearTestCase extends ModelTestCase {
protected
$_mock_web_client,
......
Markdown is supported
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