ILIAS  trunk Revision v12.0_alpha-377-g3641b37b9db
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 100 of file TestSetupAgent.php.

100 : Transformation
101 {
102 throw new \LogicException("Agent has no config.");
103 }

◆ getBuildObjective()

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

@inheritdocs

Reimplemented from ILIAS\Setup\Agent\NullAgent.

Definition at line 110 of file TestSetupAgent.php.

110 : Objective
111 {
112 return new NullObjective();
113 }

◆ getInstallObjective()

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

@inheritdocs

Reimplemented from ILIAS\Setup\Agent\NullAgent.

Definition at line 105 of file TestSetupAgent.php.

105 : Objective
106 {
107 return new NullObjective();
108 }

◆ getMigrations()

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

@inheritDoc

Reimplemented from ILIAS\Setup\Agent\NullAgent.

Definition at line 115 of file TestSetupAgent.php.

115 : array
116 {
117 return [
118 new MoveTestSettingsMigration(),
119 new MoveSettingsTemplatesMigration(),
120 new RemoveLegacyTestSettingsMigration()
121 ];
122 }

◆ getStatusObjective()

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

Definition at line 71 of file TestSetupAgent.php.

71 : Objective
72 {
73 return new ObjectiveCollection(
74 'ILIAS\Test',
75 true,
77 $storage,
78 new Test9DBUpdateSteps()
79 ),
81 $storage,
82 new Test10DBUpdateSteps()
83 ),
85 $storage,
86 new ilTestNoHintsDBUpdateSteps()
87 ),
89 $storage,
90 new Test11DBUpdateSteps()
91 ),
92 );
93 }

◆ 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 ),
66 new Test11DBUpdateSteps()
67 )
68 );
69 }
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 95 of file TestSetupAgent.php.

95 : bool
96 {
97 return false;
98 }

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