19 declare(strict_types=1);
33 require_once __DIR__ .
'/../ContainerMock.php';
41 $this->assertInstanceOf(Agent::class,
new Agent($this->mock(Refinery::class)));
46 $this->assertFalse((
new Agent($this->mock(Refinery::class)))->hasConfig());
51 $identity = $this->mock(Transformation::class);
52 $this->assertSame($identity, (
new Agent($this->mockTree(Refinery::class, [
'identity' => $identity])))->getArrayToConfigTransformation());
57 $this->assertInstanceOf(NullObjective::class, (
new Agent($this->mock(Refinery::class)))->getInstallObjective());
62 $this->assertInstanceOf(ilDatabaseUpdateStepsExecutedObjective::class, (
new Agent($this->mock(Refinery::class)))->getUpdateObjective());
67 $this->assertInstanceOf(ConsumerObjective::class, (
new Agent($this->mock(Refinery::class)))->getBuildObjective());
72 $this->assertInstanceOf(\ilDatabaseUpdateStepsMetricsCollectedObjective::class, (
new Agent($this->mock(Refinery::class)))->getStatusObjective($this->mock(Storage::class)));
77 $this->assertSame([], (
new Agent($this->mock(Refinery::class)))->getMigrations());
82 $this->assertSame([], (
new Agent($this->mock(Refinery::class)))->getNamedObjectives());
testGetInstallObjective()
testGetBuildArtifactObjective()
testGetArrayToConfigTransformation()