Definition at line 9 of file ObjectiveCollectionTest.php.
◆ testAchieve()
ILIAS\Tests\Setup\ObjectiveCollectionTest::testAchieve |
( |
| ) |
|
Definition at line 72 of file ObjectiveCollectionTest.php.
References Vendor\Package\$c, and $res.
74 $g1 = $this->newObjective();
75 $g2 = $this->newObjective();
76 $g3 = $this->newObjective();
78 $c =
new Setup\ObjectiveCollection(
"",
false, $g1, $g2, $g3);
80 $env = $this->createMock(Setup\Environment::class);
82 foreach ([$g1,$g2,$g3] as $g) {
84 ->expects($this->never())
89 $this->assertSame($env,
$res);
foreach($_POST as $key=> $value) $res
◆ testGetHash()
ILIAS\Tests\Setup\ObjectiveCollectionTest::testGetHash |
( |
| ) |
|
Definition at line 24 of file ObjectiveCollectionTest.php.
26 $g1 = $this->newObjective();
27 $g2 = $this->newObjective();
28 $g3 = $this->newObjective();
30 $c1 =
new Setup\ObjectiveCollection(
"",
false, $g1, $g2, $g3);
31 $c2 =
new Setup\ObjectiveCollection(
"",
false, $g1, $g2);
32 $c3 =
new Setup\ObjectiveCollection(
"",
false, $g1, $g2, $g3);
34 $this->assertIsString($c1->getHash());
35 $this->assertIsString($c2->getHash());
36 $this->assertIsString($c3->getHash());
38 $this->assertEquals($c1->getHash(), $c1->getHash());
39 $this->assertNotEquals($c1->getHash(), $c2->getHash());
40 $this->assertEquals($c1->getHash(), $c3->getHash());
◆ testGetLabel()
ILIAS\Tests\Setup\ObjectiveCollectionTest::testGetLabel |
( |
| ) |
|
◆ testGetObjectives()
ILIAS\Tests\Setup\ObjectiveCollectionTest::testGetObjectives |
( |
| ) |
|
Definition at line 13 of file ObjectiveCollectionTest.php.
References Vendor\Package\$c.
15 $g1 = $this->newObjective();
16 $g2 = $this->newObjective();
17 $g3 = $this->newObjective();
19 $c =
new Setup\ObjectiveCollection(
"",
false, $g1, $g2, $g3);
21 $this->assertEquals([$g1, $g2, $g3],
$c->getObjectives());
◆ testGetPreconditions()
ILIAS\Tests\Setup\ObjectiveCollectionTest::testGetPreconditions |
( |
| ) |
|
Definition at line 57 of file ObjectiveCollectionTest.php.
References Vendor\Package\$c.
59 $g1 = $this->newObjective();
60 $g2 = $this->newObjective();
61 $g3 = $this->newObjective();
63 $c =
new Setup\ObjectiveCollection(
"",
false, $g1, $g2, $g3);
65 $env = $this->createMock(Setup\Environment::class);
67 $pre =
$c->getPreconditions($env);
68 $this->assertEquals([$g1,$g2, $g3], $pre);
◆ testIsNotable()
ILIAS\Tests\Setup\ObjectiveCollectionTest::testIsNotable |
( |
| ) |
|
Definition at line 49 of file ObjectiveCollectionTest.php.
51 $c1 =
new Setup\ObjectiveCollection(
"",
false);
52 $c2 =
new Setup\ObjectiveCollection(
"",
true);
53 $this->assertFalse($c1->isNotable());
54 $this->assertTrue($c2->isNotable());
The documentation for this class was generated from the following file: