19 declare(strict_types=1);
    43         $refinery = 
new Refinery($this->createMock(DataFactory::class), $this->createMock(\ilLanguage::class));
    45         $agent = $this->createMock(
Setup\AgentCollection::class);
    46         $config_reader = $this->createMock(
Setup\CLI\ConfigReader::class);
    47         $agent_finder = $this->createMock(
Setup\AgentFinder::class);
    50         $tester = 
new CommandTester($command);
    52         $config = $this->createMock(
Setup\ConfigCollection::class);
    53         $config_file = 
"config_file";
    54         $config_file_content = [
"config_file"];
    56         $objective = $this->createMock(
Setup\Objective::class);
    57         $env = $this->createMock(
Setup\Environment::class);
    59         $config_overwrites = [
    65             ->expects($this->once())
    70             ->expects($this->once())
    71             ->method(
"readConfigFile")
    72             ->with($config_file, $config_overwrites)
    73             ->willReturn($config_file_content);
    76             ->expects($this->once())
    87             ->expects($this->once())
    93             ->expects($this->once())
    94             ->method(
"getArrayToConfigTransformation")
    96             ->willReturn(
$refinery->custom()->transformation(
function ($v) use ($config_file_content, $config) {
    97                 $this->assertEquals($v, $config_file_content);
   102             ->expects($this->once())
   103             ->method(
"getInstallObjective")
   105             ->willReturn($objective);
   108             ->expects($this->never())
   109             ->method(
"getBuildObjective")
   114             ->expects($this->once())
   115             ->method(
"getUpdateObjective")
   120             ->expects($this->once())
   121             ->method(
"getPreconditions")
   124         $expects = $this->never();
   127         if ($is_applicable) {
   128             $expects = $this->once();
   138             ->expects($this->once())
   139             ->method(
"isApplicable")
   140             ->willReturn($return);
   143             "config" => $config_file,
   144             "--config" => [
"a.b.c=foo", 
"d.e=bar"]
   150         $agent = $this->createMock(
Setup\AgentCollection::class);
   151         $config_reader = $this->createMock(
Setup\CLI\ConfigReader::class);
   152         $agent_finder = $this->createMock(
Setup\AgentFinder::class);
   155         $tester = 
new CommandTester($command);
   157         $objective = $this->createMock(
Setup\Objective::class);
   158         $env = $this->createMock(
Setup\Environment::class);
   161             ->expects($this->once())
   162             ->method(
"hasConfig")
   166             ->expects($this->once())
   167             ->method(
"getPluginAgent")
   169             ->willReturn($agent);
   172             ->expects($this->once())
   173             ->method(
"getInstallObjective")
   175             ->willReturn($objective);
   178             ->expects($this->once())
   179             ->method(
"getUpdateObjective")
   184             ->expects($this->once())
   185             ->method(
"getPreconditions")
   189             ->expects($this->once())
   194             ->expects($this->once())
   195             ->method(
"isApplicable")
   199             "--legacy-plugin" => 
"test" 
An objective is a desired state of the system that is supposed to be created by the setup...
 
basicFunctionality(bool $is_applicable)
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
A non-objective, nothing to do to achieve it... 
 
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...
 
testBasicFunctionalityAlreadyAchieved()
 
A configuration for the setup.