3 declare(strict_types=1);
    28     protected function newAgent(): Setup\Agent
    33             ->getMockBuilder(Setup\Agent::class)
    34             ->onlyMethods([
"hasConfig", 
"getArrayToConfigTransformation", 
"getInstallObjective", 
"getUpdateObjective", 
"getBuildObjective", 
"getStatusObjective", 
"getMigrations", 
"getNamedObjectives"])
    35             ->setMockClassName(
"Mock_AgentNo" . ($no++))
    41     protected function newObjectiveConstructor(): Setup\ObjectiveConstructor
    44         return new Setup\ObjectiveConstructor(
"named-objective-" . ($no++), 
static function () {
    45             return self::newObjective();
    49     protected function newObjective(): Setup\Objective
    54             ->getMockBuilder(Setup\Objective::class)
    55             ->onlyMethods([
"getHash", 
"getLabel", 
"isNotable", 
"getPreconditions", 
"achieve", 
"isApplicable"])
    56             ->setMockClassName(
"Mock_" . md5(get_class($this)) . 
"_ObjectiveNo" . ($no++))
    61             ->willReturn(
"" . $no);
    71             ->getMockBuilder(InputField::class)
    73             ->setMockClassName(
"Mock_InputNo" . ($no++))
    79     protected function newConfig(): Setup\Config
    84             ->getMockBuilder(Setup\Config::class)
    86             ->setMockClassName(
"Mock_" . md5(get_class($this)) . 
"_ConfigNo" . ($no++))
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...