Definition at line 24 of file LSPlayerTest.php.
◆ setUp()
Definition at line 30 of file LSPlayerTest.php.
References ILIAS\GlobalScreen\Provider\__construct().
32 $this->available = $this->createMock(LSLearnerItem::class);
33 $this->available->method(
'getAvailability')
34 ->willReturn(Step::AVAILABLE);
35 $this->unavailable = $this->createMock(LSLearnerItem::class);
36 $this->unavailable->method(
'getAvailability')
37 ->willReturn(Step::NOT_AVAILABLE);
39 $this->player =
new class () extends
ilLSPlayer {
43 public function _getNextAvailableItem(
47 return parent::getNextAvailableItem($items, $current_item);
Implementation of KioskMode Player.
__construct(Container $dic, ilPlugin $plugin)
Add learning progress and availability information to the LSItem.
◆ testLearningSequenceNextAvailableBackwards()
LSPlayerTest::testLearningSequenceNextAvailableBackwards |
( |
| ) |
|
◆ testLearningSequenceNextAvailableForwards()
LSPlayerTest::testLearningSequenceNextAvailableForwards |
( |
| ) |
|
Definition at line 98 of file LSPlayerTest.php.
References $available, and $unavailable.
107 $current = $items[1];
110 array_search($this->player->_getNextAvailableItem($items, $current), $items)
LSLearnerItem $unavailable
◆ testLearningSequenceNextAvailableIsNull()
LSPlayerTest::testLearningSequenceNextAvailableIsNull |
( |
| ) |
|
Definition at line 69 of file LSPlayerTest.php.
References $unavailable.
78 $this->player->_getNextAvailableItem($items, $current)
LSLearnerItem $unavailable
◆ testLearningSequenceNextAvailableIsSame()
LSPlayerTest::testLearningSequenceNextAvailableIsSame |
( |
| ) |
|
Definition at line 52 of file LSPlayerTest.php.
References $available, and $unavailable.
60 $this->assertNotSame($items[0], $items[2]);
61 $this->assertEquals(Step::AVAILABLE, $items[1]->getAvailability());
62 $this->assertEquals(Step::NOT_AVAILABLE, $items[3]->getAvailability());
65 $next = $this->player->_getNextAvailableItem($items, $current);
66 $this->assertSame($current, $next);
LSLearnerItem $unavailable
◆ $available
◆ $player
◆ $unavailable
The documentation for this class was generated from the following file: