mirror of
https://github.com/wiosna-dev/limesurvey-api-client.git
synced 2026-03-12 10:11:49 +01:00
Configuration of connecting - do not allow to change (remove setters)
This commit is contained in:
@@ -68,9 +68,15 @@ class ClientTest extends BaseTestCase
|
||||
->method('runMethod')
|
||||
->willReturn([]);
|
||||
|
||||
$this->configuration->setDebugMode($debugMode);
|
||||
$client = new Client($this->configuration, $rpcClientManager, $sessionManager);
|
||||
$configuration = new ConnectionConfiguration(
|
||||
$this->configuration->getBaseUrl(),
|
||||
$this->configuration->getUsername(),
|
||||
$this->configuration->getPassword(),
|
||||
$debugMode,
|
||||
$this->configuration->isVerifySslCertificateOn()
|
||||
);
|
||||
|
||||
$client = new Client($configuration, $rpcClientManager, $sessionManager);
|
||||
static::assertInstanceOf(Result::class, $client->run($method, $arguments));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user