16 $g1 = $this->newObjective();
17 $g2 = $this->newObjective();
18 $g3 = $this->newObjective();
22 $this->assertEquals([$g1, $g2, $g3],
$c->getObjectives());
27 $g1 = $this->newObjective();
28 $g2 = $this->newObjective();
29 $g3 = $this->newObjective();
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());
47 $this->assertEquals(
"LABEL",
$c->getLabel());
54 $this->assertFalse($c1->isNotable());
55 $this->assertTrue($c2->isNotable());
60 $g1 = $this->newObjective();
61 $g2 = $this->newObjective();
62 $g3 = $this->newObjective();
66 $env = $this->createMock(Setup\Environment::class);
68 $pre =
$c->getPreconditions($env);
69 $this->assertEquals([$g1,$g2, $g3], $pre);
75 $g1 = $this->newObjective();
76 $g2 = $this->newObjective();
77 $g3 = $this->newObjective();
81 $env = $this->createMock(Setup\Environment::class);
83 foreach ([$g1,$g2,$g3] as $g) {
85 ->expects($this->never())
90 $this->assertSame($env,
$res);
A objective collection is a objective that is achieved once all subobjectives are achieved...
foreach($_POST as $key=> $value) $res
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...