◆ setUp()
ILIAS\Tests\Setup\Artifact\BuildArtifactObjectiveTest::setUp |
( |
| ) |
|
Definition at line 34 of file BuildArtifactObjectiveTest.php.
37 ->getMockBuilder(Artifact\BuildArtifactObjective::class)
38 ->onlyMethods([
"build",
"buildIn",
"getArtifactName"])
41 $this->artifact = $this->createMock(Setup\Artifact::class);
42 $this->env = $this->createMock(Setup\Environment::class);
◆ tearDown()
ILIAS\Tests\Setup\Artifact\BuildArtifactObjectiveTest::tearDown |
( |
| ) |
|
◆ testAchieve()
ILIAS\Tests\Setup\Artifact\BuildArtifactObjectiveTest::testAchieve |
( |
| ) |
|
Definition at line 89 of file BuildArtifactObjectiveTest.php.
References $path.
92 ->expects($this->once())
95 ->willReturn($this->artifact);
99 ->expects($this->once())
100 ->method(
"serialize")
104 $this->o->achieve($this->env);
106 $path = $this->o::PATH();
◆ testBuildInDefaultsToBuild()
ILIAS\Tests\Setup\Artifact\BuildArtifactObjectiveTest::testBuildInDefaultsToBuild |
( |
| ) |
|
Definition at line 45 of file BuildArtifactObjectiveTest.php.
48 ->getMockBuilder(Artifact\BuildArtifactObjective::class)
49 ->onlyMethods([
"build",
"getArtifactName"])
53 ->expects($this->once())
56 ->willReturn($this->artifact);
58 $this->assertSame($this->artifact, $this->o->buildIn($this->env));
◆ testGetHash()
ILIAS\Tests\Setup\Artifact\BuildArtifactObjectiveTest::testGetHash |
( |
| ) |
|
◆ testGetLabel()
ILIAS\Tests\Setup\Artifact\BuildArtifactObjectiveTest::testGetLabel |
( |
| ) |
|
Definition at line 71 of file BuildArtifactObjectiveTest.php.
73 $name =
"my_artifact";
76 ->expects($this->once())
77 ->method(
"getArtifactName")
81 $this->assertEquals(
"Build $name Artifact", $this->o->getLabel());
◆ testGetPreconditions()
ILIAS\Tests\Setup\Artifact\BuildArtifactObjectiveTest::testGetPreconditions |
( |
| ) |
|
◆ testIsNotable()
ILIAS\Tests\Setup\Artifact\BuildArtifactObjectiveTest::testIsNotable |
( |
| ) |
|
◆ $artifact
Artifact ILIAS\Tests\Setup\Artifact\BuildArtifactObjectiveTest::$artifact |
|
protected |
◆ $env
◆ $o
PHPUnit Framework MockObject MockObject ILIAS\Tests\Setup\Artifact\BuildArtifactObjectiveTest::$o |
|
protected |
The documentation for this class was generated from the following file: