->will($this->onConsecutiveCalls('Certainly not a JSON string', '{"installed":true,"maintenance":false,"version":"8.1.0.8","versionstring":"8.1.0","edition":""}'));
$client
->expects($this->any())
->method('get')
->will($this->returnValue($response));
$this->clientService
->expects($this->once())
->expects($this->exactly(2))
->method('newClient')
->will($this->returnValue($client));
@ -123,13 +117,13 @@ class ExternalShareControllerTest extends \Test\TestCase {
->will($this->onConsecutiveCalls('Certainly not a JSON string', '{"installed":true,"maintenance":false,"version":"8.1.0.8","versionstring":"8.1.0","edition":""}'));
->will($this->onConsecutiveCalls('Certainly not a JSON string', 'Certainly not a JSON string', 'Certainly not a JSON string', 'Certainly not a JSON string', '{"installed":true,"maintenance":false,"version":"8.1.0.8","versionstring":"8.1.0","edition":""}'));
$this->clientService
->expects($this->exactly(2))
->expects($this->exactly(5))
->method('newClient')
->will($this->returnValue($client));
@ -143,13 +137,13 @@ class ExternalShareControllerTest extends \Test\TestCase {