ILIAS  trunk Revision v11.0_alpha-1769-g99a433fe2dc
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
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.

References ILIAS\Repository\refinery().

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 Contains several chained tasks and infos about them.
+ 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: