ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
SetupAgentTest.php
Go to the documentation of this file.
1<?php
2
19namespace ILIAS\Test\test;
20
22
24use ILIAS\Refinery\Factory as Refinery;
27
29{
30 public function testConstruct(): void
31 {
32 $ilTestSetupAgentTest = new TestSetupAgent($this->createMock(Refinery::class));
33 $this->assertInstanceOf(TestSetupAgent::class, $ilTestSetupAgentTest);
34 }
35
36 public function testGetUpdateObjective(): void
37 {
38 $ilTestSetupAgentTest = new TestSetupAgent($this->createMock(Refinery::class));
39 $this->assertInstanceOf(ObjectiveCollection::class, $ilTestSetupAgentTest->getUpdateObjective());
40 }
41
42 public function testHasConfig(): void
43 {
44 $ilTestSetupAgentTest = new TestSetupAgent($this->createMock(Refinery::class));
45 $this->assertFalse($ilTestSetupAgentTest->hasConfig());
46 }
47
48 public function testGetInstallObjective(): void
49 {
50 $ilTestSetupAgentTest = new TestSetupAgent($this->createMock(Refinery::class));
51 $this->assertInstanceOf(NullObjective::class, $ilTestSetupAgentTest->getInstallObjective());
52 }
53
54 public function testGetBuildArtifactObjective(): void
55 {
56 $ilTestSetupAgentTest = new TestSetupAgent($this->createMock(Refinery::class));
57 $this->assertInstanceOf(NullObjective::class, $ilTestSetupAgentTest->getBuildObjective());
58 }
59
60 public function testGetMigrations(): void
61 {
62 $ilTestSetupAgentTest = new TestSetupAgent($this->createMock(Refinery::class));
63 $this->assertIsArray($ilTestSetupAgentTest->getMigrations());
64 }
65}
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...