Definition at line 28 of file ObjectiveCollectionTest.php.
◆ testAchieve()
ILIAS\Tests\Setup\ObjectiveCollectionTest::testAchieve |
( |
| ) |
|
Definition at line 91 of file ObjectiveCollectionTest.php.
References $c, and $res.
93 $g1 = $this->newObjective();
94 $g2 = $this->newObjective();
95 $g3 = $this->newObjective();
97 $c =
new Setup\ObjectiveCollection(
"",
false, $g1, $g2, $g3);
99 $env = $this->createMock(Setup\Environment::class);
101 foreach ([$g1,$g2,$g3] as $g) {
103 ->expects($this->never())
108 $this->assertSame($env,
$res);
◆ testGetHash()
ILIAS\Tests\Setup\ObjectiveCollectionTest::testGetHash |
( |
| ) |
|
Definition at line 43 of file ObjectiveCollectionTest.php.
45 $g1 = $this->newObjective();
46 $g2 = $this->newObjective();
47 $g3 = $this->newObjective();
49 $c1 =
new Setup\ObjectiveCollection(
"",
false, $g1, $g2, $g3);
50 $c2 =
new Setup\ObjectiveCollection(
"",
false, $g1, $g2);
51 $c3 =
new Setup\ObjectiveCollection(
"",
false, $g1, $g2, $g3);
53 $this->assertIsString($c1->getHash());
54 $this->assertIsString($c2->getHash());
55 $this->assertIsString($c3->getHash());
57 $this->assertEquals($c1->getHash(), $c1->getHash());
58 $this->assertNotEquals($c1->getHash(), $c2->getHash());
59 $this->assertEquals($c1->getHash(), $c3->getHash());
◆ testGetLabel()
ILIAS\Tests\Setup\ObjectiveCollectionTest::testGetLabel |
( |
| ) |
|
Definition at line 62 of file ObjectiveCollectionTest.php.
References $c.
64 $c =
new Setup\ObjectiveCollection(
"LABEL",
false);
65 $this->assertEquals(
"LABEL",
$c->getLabel());
◆ testGetObjectives()
ILIAS\Tests\Setup\ObjectiveCollectionTest::testGetObjectives |
( |
| ) |
|
Definition at line 32 of file ObjectiveCollectionTest.php.
References $c.
34 $g1 = $this->newObjective();
35 $g2 = $this->newObjective();
36 $g3 = $this->newObjective();
38 $c =
new Setup\ObjectiveCollection(
"",
false, $g1, $g2, $g3);
40 $this->assertEquals([$g1, $g2, $g3],
$c->getObjectives());
◆ testGetPreconditions()
ILIAS\Tests\Setup\ObjectiveCollectionTest::testGetPreconditions |
( |
| ) |
|
Definition at line 76 of file ObjectiveCollectionTest.php.
References $c.
78 $g1 = $this->newObjective();
79 $g2 = $this->newObjective();
80 $g3 = $this->newObjective();
82 $c =
new Setup\ObjectiveCollection(
"",
false, $g1, $g2, $g3);
84 $env = $this->createMock(Setup\Environment::class);
86 $pre =
$c->getPreconditions($env);
87 $this->assertEquals([$g1,$g2, $g3], $pre);
◆ testIsNotable()
ILIAS\Tests\Setup\ObjectiveCollectionTest::testIsNotable |
( |
| ) |
|
Definition at line 68 of file ObjectiveCollectionTest.php.
70 $c1 =
new Setup\ObjectiveCollection(
"",
false);
71 $c2 =
new Setup\ObjectiveCollection(
"",
true);
72 $this->assertFalse($c1->isNotable());
73 $this->assertTrue($c2->isNotable());
The documentation for this class was generated from the following file: