Definition at line 10 of file ObjectiveCollectionTest.php.
◆ testAchieve()
ILIAS\Tests\Setup\ObjectiveCollectionTest::testAchieve |
( |
| ) |
|
Definition at line 73 of file ObjectiveCollectionTest.php.
References $c, and $res.
75 $g1 = $this->newObjective();
76 $g2 = $this->newObjective();
77 $g3 = $this->newObjective();
79 $c =
new Setup\ObjectiveCollection(
"",
false, $g1, $g2, $g3);
81 $env = $this->createMock(Setup\Environment::class);
83 foreach ([$g1,$g2,$g3] as $g) {
85 ->expects($this->never())
90 $this->assertSame($env,
$res);
foreach($_POST as $key=> $value) $res
◆ testGetHash()
ILIAS\Tests\Setup\ObjectiveCollectionTest::testGetHash |
( |
| ) |
|
Definition at line 25 of file ObjectiveCollectionTest.php.
27 $g1 = $this->newObjective();
28 $g2 = $this->newObjective();
29 $g3 = $this->newObjective();
31 $c1 =
new Setup\ObjectiveCollection(
"",
false, $g1, $g2, $g3);
32 $c2 =
new Setup\ObjectiveCollection(
"",
false, $g1, $g2);
33 $c3 =
new Setup\ObjectiveCollection(
"",
false, $g1, $g2, $g3);
35 $this->assertIsString($c1->getHash());
36 $this->assertIsString($c2->getHash());
37 $this->assertIsString($c3->getHash());
39 $this->assertEquals($c1->getHash(), $c1->getHash());
40 $this->assertNotEquals($c1->getHash(), $c2->getHash());
41 $this->assertEquals($c1->getHash(), $c3->getHash());
◆ testGetLabel()
ILIAS\Tests\Setup\ObjectiveCollectionTest::testGetLabel |
( |
| ) |
|
Definition at line 44 of file ObjectiveCollectionTest.php.
References $c.
46 $c =
new Setup\ObjectiveCollection(
"LABEL",
false);
47 $this->assertEquals(
"LABEL",
$c->getLabel());
◆ testGetObjectives()
ILIAS\Tests\Setup\ObjectiveCollectionTest::testGetObjectives |
( |
| ) |
|
Definition at line 14 of file ObjectiveCollectionTest.php.
References $c.
16 $g1 = $this->newObjective();
17 $g2 = $this->newObjective();
18 $g3 = $this->newObjective();
20 $c =
new Setup\ObjectiveCollection(
"",
false, $g1, $g2, $g3);
22 $this->assertEquals([$g1, $g2, $g3],
$c->getObjectives());
◆ testGetPreconditions()
ILIAS\Tests\Setup\ObjectiveCollectionTest::testGetPreconditions |
( |
| ) |
|
Definition at line 58 of file ObjectiveCollectionTest.php.
References $c.
60 $g1 = $this->newObjective();
61 $g2 = $this->newObjective();
62 $g3 = $this->newObjective();
64 $c =
new Setup\ObjectiveCollection(
"",
false, $g1, $g2, $g3);
66 $env = $this->createMock(Setup\Environment::class);
68 $pre =
$c->getPreconditions($env);
69 $this->assertEquals([$g1,$g2, $g3], $pre);
◆ testIsNotable()
ILIAS\Tests\Setup\ObjectiveCollectionTest::testIsNotable |
( |
| ) |
|
Definition at line 50 of file ObjectiveCollectionTest.php.
52 $c1 =
new Setup\ObjectiveCollection(
"",
false);
53 $c2 =
new Setup\ObjectiveCollection(
"",
true);
54 $this->assertFalse($c1->isNotable());
55 $this->assertTrue($c2->isNotable());
The documentation for this class was generated from the following file: