◆ setUp()
ILIAS\Tests\GlobalCache\Setup\ilGlobalCacheSetupAgentTest::setUp |
( |
| ) |
|
◆ testCreate()
ILIAS\Tests\GlobalCache\Setup\ilGlobalCacheSetupAgentTest::testCreate |
( |
| ) |
|
◆ testGetArrayToConfigTransformationWithMemcachedNode()
ILIAS\Tests\GlobalCache\Setup\ilGlobalCacheSetupAgentTest::testGetArrayToConfigTransformationWithMemcachedNode |
( |
| ) |
|
Definition at line 182 of file ilGlobalCacheSetupAgentTest.php.
184 $fnc = $this->obj->getArrayToConfigTransformation();
195 "service" =>
"memcached",
196 "memcached_nodes" => [$node],
197 "components" => [
"dummy" =>
true]
201 $this->assertInstanceOf(\ilGlobalCacheSettingsAdapter::class, $settings);
202 $this->assertIsArray($settings->getMemcachedNodes());
204 $settings = $settings->getMemcachedNodes();
205 $node = array_shift($settings);
207 $this->assertEquals(
"test.de", $node->getHost());
208 $this->assertEquals(
"9874", $node->getPort());
209 $this->assertEquals(
"10", $node->getWeight());
◆ testGetArrayToConfigTransformationWithServiceException()
ILIAS\Tests\GlobalCache\Setup\ilGlobalCacheSetupAgentTest::testGetArrayToConfigTransformationWithServiceException |
( |
| ) |
|
Definition at line 159 of file ilGlobalCacheSetupAgentTest.php.
161 $fnc = $this->obj->getArrayToConfigTransformation();
170 $this->expectException(\InvalidArgumentException::class);
171 $this->expectExceptionMessage(
"Unknown caching service: 'non_existing_service'");
175 "service" =>
"non_existing_service",
176 "memcached_nodes" => [$node],
177 "components" => [
"dummy"]
◆ testGetBuildArtifactObjective()
ILIAS\Tests\GlobalCache\Setup\ilGlobalCacheSetupAgentTest::testGetBuildArtifactObjective |
( |
| ) |
|
Definition at line 270 of file ilGlobalCacheSetupAgentTest.php.
272 $objective_collection = $this->obj->getBuildObjective();
274 $this->assertInstanceOf(NullObjective::class, $objective_collection);
◆ testGetInstallObjectives()
ILIAS\Tests\GlobalCache\Setup\ilGlobalCacheSetupAgentTest::testGetInstallObjectives |
( |
| ) |
|
Definition at line 244 of file ilGlobalCacheSetupAgentTest.php.
246 $setup_conf_mock = $this->createMock(\ilGlobalCacheSettingsAdapter::class);
247 $objective_collection = $this->obj->getInstallObjective($setup_conf_mock);
249 $this->assertEquals(
'Store configuration of components/ILIAS/GlobalCache_', $objective_collection->getLabel());
250 $this->assertFalse($objective_collection->isNotable());
◆ testGetMemcachedServerActive()
ILIAS\Tests\GlobalCache\Setup\ilGlobalCacheSetupAgentTest::testGetMemcachedServerActive |
( |
| ) |
|
Definition at line 212 of file ilGlobalCacheSetupAgentTest.php.
216 "host" =>
"my.test.de",
221 $result = $this->obj->getMServer($node);
223 $this->assertEquals(
"my.test.de", $result->getHost());
224 $this->assertEquals(
"1111", $result->getPort());
225 $this->assertEquals(
"20", $result->getWeight());
◆ testGetMemcachedServerInactive()
ILIAS\Tests\GlobalCache\Setup\ilGlobalCacheSetupAgentTest::testGetMemcachedServerInactive |
( |
| ) |
|
Definition at line 228 of file ilGlobalCacheSetupAgentTest.php.
232 "host" =>
"my.test.de",
237 $result = $this->obj->getMServer($node);
239 $this->assertEquals(
"my.test.de", $result->getHost());
240 $this->assertEquals(
"1111", $result->getPort());
241 $this->assertEquals(
"20", $result->getWeight());
◆ testGetUpdateObjective()
ILIAS\Tests\GlobalCache\Setup\ilGlobalCacheSetupAgentTest::testGetUpdateObjective |
( |
| ) |
|
Definition at line 253 of file ilGlobalCacheSetupAgentTest.php.
255 $setup_conf_mock = $this->createMock(\ilGlobalCacheSettingsAdapter::class);
256 $objective_collection = $this->obj->getUpdateObjective($setup_conf_mock);
258 $this->assertEquals(
'Store configuration of components/ILIAS/GlobalCache_', $objective_collection->getLabel());
259 $this->assertFalse($objective_collection->isNotable());
◆ testGetUpdateObjectiveWithoutConfig()
ILIAS\Tests\GlobalCache\Setup\ilGlobalCacheSetupAgentTest::testGetUpdateObjectiveWithoutConfig |
( |
| ) |
|
Definition at line 262 of file ilGlobalCacheSetupAgentTest.php.
264 $objective_collection = $this->obj->getUpdateObjective();
266 $this->assertInstanceOf(NullObjective::class, $objective_collection);
◆ testHasConfig()
ILIAS\Tests\GlobalCache\Setup\ilGlobalCacheSetupAgentTest::testHasConfig |
( |
| ) |
|
◆ $obj
ILIAS\Tests\GlobalCache\Setup\ilGlobalCacheSetupAgentTest::$obj |
|
protected |
◆ $refinery
Refinery ILIAS\Tests\GlobalCache\Setup\ilGlobalCacheSetupAgentTest::$refinery |
|
private |
The documentation for this class was generated from the following file: