3 declare(strict_types=1);
34 protected Objective\CallableObjective
$o;
38 $this->env = $environment;
42 public const NAME =
"CALL MY METHOD!";
46 $this->p = $this->newObjective();
48 $this->o =
new Objective\CallableObjective(
58 $this->assertIsString($this->o->getHash());
63 $this->assertEquals(self::NAME, $this->o->getLabel());
68 $this->assertFalse($this->o->isNotable());
73 $env = $this->createMock(Setup\Environment::class);
75 $pre = $this->o->getPreconditions($env);
76 $this->assertEquals([$this->p], $pre);
84 $env = $this->createMock(Setup\Environment::class);
86 $res = $this->o->achieve($env);
87 $this->assertSame($env,
$res);
88 $this->assertSame($this->env, $env);
myMethod(Setup\Environment $environment)
An objective is a desired state of the system that is supposed to be created by the setup...
Objective CallableObjective $o
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...
An environment holds resources to be used in the setup process.
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...