12 protected function newAgent()
17 ->getMockBuilder(Setup\Agent::class)
18 ->setMethods([
"hasConfig",
"getDefaultConfig",
"getConfigInput",
"getArrayToConfigTransformation",
"getInstallObjective",
"getUpdateObjective",
"getBuildArtifactObjective",
"getStatusObjective",
"getMigrations",
"getNamedObjective"])
19 ->setMockClassName(
"Mock_AgentNo" . ($no++))
25 protected function newObjective()
30 ->getMockBuilder(Setup\Objective::class)
31 ->setMethods([
"getHash",
"getLabel",
"isNotable",
"withResourcesFrom",
"getPreconditions",
"achieve",
"isApplicable"])
32 ->setMockClassName(
"Mock_ObjectiveNo" . ($no++))
37 ->willReturn(
"" . $no);
42 protected function newInput()
47 ->getMockBuilder(Input::class)
49 ->setMockClassName(
"Mock_InputNo" . ($no++))
55 protected function newConfig()
60 ->getMockBuilder(Setup\Config::class)
62 ->setMockClassName(
"Mock_ConfigNo" . ($no++))
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...