ILIAS  trunk Revision v12.0_alpha-1541-g23eaa5e013d
SetupAgentTest.php
Go to the documentation of this file.
1<?php
2
19namespace ILIAS\Test\test;
20
23use ILIAS\Refinery\Factory as Refinery;
26
28{
29 public function testConstruct(): void
30 {
31 $ilTestSetupAgentTest = new TestSetupAgent($this->createMock(Refinery::class));
32 $this->assertInstanceOf(TestSetupAgent::class, $ilTestSetupAgentTest);
33 }
34
35 public function testGetUpdateObjective(): void
36 {
37 $ilTestSetupAgentTest = new TestSetupAgent($this->createMock(Refinery::class));
38 $this->assertInstanceOf(ObjectiveCollection::class, $ilTestSetupAgentTest->getUpdateObjective());
39 }
40
41 public function testHasConfig(): void
42 {
43 $ilTestSetupAgentTest = new TestSetupAgent($this->createMock(Refinery::class));
44 $this->assertFalse($ilTestSetupAgentTest->hasConfig());
45 }
46
47 public function testGetInstallObjective(): void
48 {
49 $ilTestSetupAgentTest = new TestSetupAgent($this->createMock(Refinery::class));
50 $this->assertInstanceOf(NullObjective::class, $ilTestSetupAgentTest->getInstallObjective());
51 }
52
53 public function testGetBuildArtifactObjective(): void
54 {
55 $ilTestSetupAgentTest = new TestSetupAgent($this->createMock(Refinery::class));
56 $this->assertInstanceOf(NullObjective::class, $ilTestSetupAgentTest->getBuildObjective());
57 }
58
59 public function testGetMigrations(): void
60 {
61 $ilTestSetupAgentTest = new TestSetupAgent($this->createMock(Refinery::class));
62 $this->assertIsArray($ilTestSetupAgentTest->getMigrations());
63 }
64}
Builds data types.
Definition: Factory.php:36
A objective collection is a objective that is achieved once all subobjectives are achieved.
A non-objective, nothing to do to achieve it...
Class ilTestBaseClass.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...