ILIAS
release_10 Revision v10.1-43-ga1241a92c2f
◀ ilDoc Overview
TestSetupAgent.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\Test\Setup
;
22
23
use
ILIAS\Setup\Agent\NullAgent
;
24
use
ILIAS\Setup\Objective
;
25
use
ILIAS\Setup\ObjectiveCollection
;
26
use
ILIAS\Setup\Metrics\Storage
;
27
use
ILIAS\Setup\Config
;
28
use
ILIAS\Setup\Objective\NullObjective
;
29
use
ILIAS\Setup\Agent\HasNoNamedObjective
;
30
use
ILIAS\Refinery\Transformation
;
31
32
class
TestSetupAgent
extends
NullAgent
33
{
34
use
HasNoNamedObjective
;
35
36
public
function
getUpdateObjective
(
Config
$config = null):
Objective
37
{
38
return
new
ObjectiveCollection
(
39
'Database is updated for ILIAS\Test'
,
40
false
,
41
new
\
ilDatabaseUpdateStepsExecutedObjective
(
42
new
Test9DBUpdateSteps
()
43
),
44
new
\
ilDatabaseUpdateStepsExecutedObjective
(
45
new
Test10DBUpdateSteps
()
46
),
47
new
\
ilAccessCustomRBACOperationAddedObjective
(
48
'tst_history_read'
,
49
'View History in Tests'
,
50
'object'
,
51
7200,
52
[
'tst'
]
53
),
54
new
\
ilAccessRBACOperationDeletedObjective
(
'tst'
, 56)
55
);
56
}
57
58
public
function
getStatusObjective
(
Storage
$storage):
Objective
59
{
60
return
new
ObjectiveCollection
(
61
'ILIAS\Test'
,
62
true
,
63
new
\
ilDatabaseUpdateStepsMetricsCollectedObjective
(
64
$storage,
65
new
Test9DBUpdateSteps
()
66
),
67
new
\
ilDatabaseUpdateStepsMetricsCollectedObjective
(
68
$storage,
69
new
Test10DBUpdateSteps
()
70
)
71
);
72
}
73
74
public
function
hasConfig
(): bool
75
{
76
return
false
;
77
}
78
79
public
function
getArrayToConfigTransformation
():
Transformation
80
{
81
throw
new \LogicException(
"Agent has no config."
);
82
}
83
84
public
function
getInstallObjective
(
Config
$config = null):
Objective
85
{
86
return
new
NullObjective
();
87
}
88
89
public
function
getBuildObjective
():
Objective
90
{
91
return
new
NullObjective
();
92
}
93
94
public
function
getMigrations
(): array
95
{
96
return
[
97
new
CloneIntroductionAndClosingRemarksMigration
()
98
];
99
}
100
}
ILIAS\Setup\ObjectiveCollection
A objective collection is a objective that is achieved once all subobjectives are achieved...
Definition:
ObjectiveCollection.php:26
Storage
ILIAS\GlobalScreen_\UI\Footer\Setup\Agent\NullAgent
An agent that just doesn't do a thing.
Definition:
NullAgent.php:34
ILIAS\Setup\Objective
An objective is a desired state of the system that is supposed to be created by the setup...
Definition:
Objective.php:30
ILIAS\Setup\Metrics\Storage
Definition:
Storage.php:23
ILIAS\Test\Setup\TestSetupAgent\getBuildObjective
getBuildObjective()
Definition:
TestSetupAgent.php:89
ILIAS\Test\Setup\TestSetupAgent\getInstallObjective
getInstallObjective(Config $config=null)
Definition:
TestSetupAgent.php:84
ilDatabaseUpdateStepsExecutedObjective
Config
ilDatabaseUpdateStepsMetricsCollectedObjective
ILIAS\Test\Setup
Definition:
CloneIntroductionAndClosingRemarksMigration.php:21
ILIAS\Test\Setup\TestSetupAgent\getArrayToConfigTransformation
getArrayToConfigTransformation()
Definition:
TestSetupAgent.php:79
HasNoNamedObjective
Transformation
ILIAS\Test\Setup\TestSetupAgent\hasConfig
hasConfig()
Definition:
TestSetupAgent.php:74
ILIAS\Setup\Objective\NullObjective
A non-objective, nothing to do to achieve it...
Definition:
NullObjective.php:28
ILIAS\Test\Setup\TestSetupAgent
Definition:
TestSetupAgent.php:32
ilAccessRBACOperationDeletedObjective
Definition:
class.ilAccessRBACOperationDeletedObjective.php:10
ObjectiveCollection
ilAccessCustomRBACOperationAddedObjective
Definition:
class.ilAccessCustomRBACOperationAddedObjective.php:26
ILIAS\Test\Setup\Test10DBUpdateSteps
Definition:
Test10DBUpdateSteps.php:27
ILIAS\Setup\Objective
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
AdminConfirmedObjective.php:21
HasNoNamedObjective
ILIAS\Test\Setup\Test9DBUpdateSteps
Definition:
Test9DBUpdateSteps.php:23
ILIAS\Refinery\Transformation
A transformation is a function from one datatype to another.
Definition:
Transformation.php:34
NullAgent
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
ILIAS\Setup\Config
A configuration for the setup.
Definition:
Config.php:26
ILIAS\Test\Setup\TestSetupAgent\getMigrations
getMigrations()
Definition:
TestSetupAgent.php:94
ILIAS\Test\Setup\CloneIntroductionAndClosingRemarksMigration
Definition:
CloneIntroductionAndClosingRemarksMigration.php:27
NullObjective
ILIAS\Test\Setup\TestSetupAgent\getUpdateObjective
getUpdateObjective(Config $config=null)
Definition:
TestSetupAgent.php:36
ILIAS\Test\Setup\TestSetupAgent\getStatusObjective
getStatusObjective(Storage $storage)
Definition:
TestSetupAgent.php:58
components
ILIAS
Test
src
Setup
TestSetupAgent.php
Generated on Wed Sep 10 2025 15:16:35 for ILIAS by
1.8.13 (using
Doxyfile
)