ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilTestLPTest.php
Go to the documentation of this file.
1<?php
2
20{
21 public function testConstruct(): void
22 {
23 $ilTestLPTest = new ilTestLP(0);
24 $this->assertInstanceOf(ilTestLP::class, $ilTestLPTest);
25 }
26
27 #[\PHPUnit\Framework\Attributes\DataProvider('getDefaultModesDataProvider')]
28 public function testGetDefaultModes(bool $input, array $output): void
29 {
30 $this->assertEquals($output, ilTestLP::getDefaultModes($input));
31 }
32
33 public static function getDefaultModesDataProvider(): array
34 {
35 return [
38 ];
39 }
40
41 public function testGetDefaultMode(): void
42 {
43 $ilTestLP = new ilTestLP(0);
44 $this->assertEquals(ilLPObjSettings::LP_MODE_TEST_PASSED, $ilTestLP->getDefaultMode());
45 }
46
47 public function testGetValidModes(): void
48 {
49 $ilTestLP = new ilTestLP(0);
51 }
52}
Class ilTestBaseClass.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
testGetDefaultModes(bool $input, array $output)
static getDefaultModesDataProvider()
static getDefaultModes(bool $a_lp_active)
Get available type-specific default modes (no administration needed)