ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\Tests\Setup\Agent\NullAgentTest Class Reference
+ Inheritance diagram for ILIAS\Tests\Setup\Agent\NullAgentTest:
+ Collaboration diagram for ILIAS\Tests\Setup\Agent\NullAgentTest:

Public Member Functions

 setUp ()
 
 testIsNull ()
 
 testGetArrayToConfigTransformationThrows ()
 

Protected Attributes

ILIAS Refinery Factory $refinery
 
Metrics Storage $storage
 
NullAgent $agent
 

Detailed Description

Definition at line 28 of file NullAgentTest.php.

Member Function Documentation

◆ setUp()

ILIAS\Tests\Setup\Agent\NullAgentTest::setUp ( )

Definition at line 34 of file NullAgentTest.php.

34 : void
35 {
36 $this->refinery = $this->createMock(\ILIAS\Refinery\Factory::class);
37 $this->storage = $this->createMock(Metrics\Storage::class);
38 $this->agent = new NullAgent($this->refinery);
39 }
Interface Observer \BackgroundTasks Contains several chained tasks and infos about them.

References ILIAS\Repository\refinery().

+ Here is the call graph for this function:

◆ testGetArrayToConfigTransformationThrows()

ILIAS\Tests\Setup\Agent\NullAgentTest::testGetArrayToConfigTransformationThrows ( )

Definition at line 52 of file NullAgentTest.php.

52 : void
53 {
54 $this->expectException(\LogicException::class);
55 $this->agent->getArrayToConfigTransformation();
56 }

◆ testIsNull()

ILIAS\Tests\Setup\Agent\NullAgentTest::testIsNull ( )

Definition at line 41 of file NullAgentTest.php.

41 : void
42 {
43 $null = new NullObjective();
44 $this->assertFalse($this->agent->hasConfig());
45 $this->assertEquals($null, $this->agent->getInstallObjective());
46 $this->assertEquals($null, $this->agent->getUpdateObjective());
47 $this->assertEquals($null, $this->agent->getBuildObjective());
48 $this->assertEquals($null, $this->agent->getStatusObjective($this->storage));
49 $this->assertEquals([], $this->agent->getMigrations());
50 }

Field Documentation

◆ $agent

NullAgent ILIAS\Tests\Setup\Agent\NullAgentTest::$agent
protected

Definition at line 32 of file NullAgentTest.php.

◆ $refinery

ILIAS Refinery Factory ILIAS\Tests\Setup\Agent\NullAgentTest::$refinery
protected

Definition at line 30 of file NullAgentTest.php.

◆ $storage

Metrics Storage ILIAS\Tests\Setup\Agent\NullAgentTest::$storage
protected

Definition at line 31 of file NullAgentTest.php.


The documentation for this class was generated from the following file: