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

Public Member Functions

 getUpdateObjective (?Config $config=null)
 @inheritdocs More...
 
 getStatusObjective (Storage $storage)
 
 hasConfig ()
 @inheritdocs More...
 
 getArrayToConfigTransformation ()
 @inheritdocs More...
 
 getInstallObjective (?Config $config=null)
 @inheritdocs More...
 
 getBuildObjective ()
 @inheritdocs More...
 
 getMigrations ()
 @inheritDoc More...
 
- Public Member Functions inherited from ILIAS\Setup\Agent\NullAgent
 __construct (Refinery $refinery)
 
 hasConfig ()
 @inheritdocs More...
 
 getArrayToConfigTransformation ()
 @inheritdocs More...
 
 getInstallObjective (?Config $config=null)
 @inheritdocs More...
 
 getUpdateObjective (?Config $config=null)
 @inheritdocs More...
 
 getBuildObjective ()
 @inheritdocs More...
 
 getStatusObjective (Metrics\Storage $storage)
 @inheritdocs More...
 
 getMigrations ()
 @inheritDoc More...
 
 getNamedObjectives (?Config $config=null)
 Gets all named objectives The keys of the returned array are the commands. More...
 
- Public Member Functions inherited from ILIAS\Setup\Agent
 hasConfig ()
 Does this agent require a configuration? More...
 
 getArrayToConfigTransformation ()
 Agents must be able to tell how to create a configuration from a nested array. More...
 
 getInstallObjective (?Config $config=null)
 Get the goals the agent wants to achieve on setup. More...
 
 getUpdateObjective (?Config $config=null)
 Get the goal the agent wants to achieve on update. More...
 
 getBuildObjective ()
 Get the goal the agent wants to achieve to build artifacts. More...
 
 getStatusObjective (Metrics\Storage $storage)
 Get the objective to be achieved when status is requested. More...
 
 getMigrations ()
 Get a named map of migrations available for this Agent. More...
 
 getNamedObjectives (?Config $config=null)
 Gets all named objectives The keys of the returned array are the commands. More...
 

Additional Inherited Members

- Protected Attributes inherited from ILIAS\Setup\Agent\NullAgent
Refinery $refinery
 

Detailed Description

Definition at line 32 of file TestSetupAgent.php.

Member Function Documentation

◆ getArrayToConfigTransformation()

ILIAS\Test\Setup\TestSetupAgent::getArrayToConfigTransformation ( )

@inheritdocs

Reimplemented from ILIAS\Setup\Agent\NullAgent.

Definition at line 93 of file TestSetupAgent.php.

93 : Transformation
94 {
95 throw new \LogicException("Agent has no config.");
96 }

◆ getBuildObjective()

ILIAS\Test\Setup\TestSetupAgent::getBuildObjective ( )

@inheritdocs

Reimplemented from ILIAS\Setup\Agent\NullAgent.

Definition at line 103 of file TestSetupAgent.php.

103 : Objective
104 {
105 return new NullObjective();
106 }

◆ getInstallObjective()

ILIAS\Test\Setup\TestSetupAgent::getInstallObjective ( ?Config  $config = null)

@inheritdocs

Reimplemented from ILIAS\Setup\Agent\NullAgent.

Definition at line 98 of file TestSetupAgent.php.

98 : Objective
99 {
100 return new NullObjective();
101 }

◆ getMigrations()

ILIAS\Test\Setup\TestSetupAgent::getMigrations ( )

@inheritDoc

Reimplemented from ILIAS\Setup\Agent\NullAgent.

Definition at line 108 of file TestSetupAgent.php.

108 : array
109 {
110 return [
111 new CloneIntroductionAndClosingRemarksMigration()
112 ];
113 }

◆ getStatusObjective()

ILIAS\Test\Setup\TestSetupAgent::getStatusObjective ( Storage  $storage)

Definition at line 68 of file TestSetupAgent.php.

68 : Objective
69 {
70 return new ObjectiveCollection(
71 'ILIAS\Test',
72 true,
74 $storage,
75 new Test9DBUpdateSteps()
76 ),
78 $storage,
79 new Test10DBUpdateSteps()
80 ),
82 $storage,
83 new ilTestNoHintsDBUpdateSteps()
84 ),
85 );
86 }

◆ getUpdateObjective()

ILIAS\Test\Setup\TestSetupAgent::getUpdateObjective ( ?Config  $config = null)

@inheritdocs

Reimplemented from ILIAS\Setup\Agent\NullAgent.

Definition at line 36 of file TestSetupAgent.php.

36 : Objective
37 {
38 return new ObjectiveCollection(
39 'Database is updated for ILIAS\Test',
40 false,
42 new Test9DBUpdateSteps()
43 ),
45 new Test10DBUpdateSteps()
46 ),
48 'tst_history_read',
49 'View History in Tests',
50 'object',
51 7200,
52 ['tst']
53 ),
56 new ilTestNoHintsDBUpdateSteps()
57 ),
59 'score_anon',
60 'Score Pseudonymously',
61 'object',
62 5000,
63 ['tst']
64 ),
65 );
66 }
This class attempt to achieve a set of database update steps.

◆ hasConfig()

ILIAS\Test\Setup\TestSetupAgent::hasConfig ( )

@inheritdocs

Reimplemented from ILIAS\Setup\Agent\NullAgent.

Definition at line 88 of file TestSetupAgent.php.

88 : bool
89 {
90 return false;
91 }

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