ILIAS  trunk Revision v12.0_alpha-399-g579a087ced2
SettingsIntroductionTest Class Reference
+ Inheritance diagram for SettingsIntroductionTest:
+ Collaboration diagram for SettingsIntroductionTest:

Public Member Functions

 testGetAndWithIntroductionEnabled (bool $io)
 
 testGetAndWithIntroductionPageId (?int $io)
 
 testGetAndWithExamConditionsCheckboxEnabled (bool $io)
 
- Public Member Functions inherited from ilTestBaseTestCase
 createInstanceOf (string $class_name, array $explicit_parameters=[])
 
 createTraitInstanceOf (string $class_name, array $explicit_parameters=[])
 

Static Public Member Functions

static getAndWithIntroductionEnabledDataProvider ()
 
static getAndWithIntroductionTextDataProvider ()
 
static getAndWithIntroductionPageIdDataProvider ()
 
static getAndWithExamConditionsCheckboxEnabledDataProvider ()
 
- Static Public Member Functions inherited from ilTestBaseTestCase
static callMethod ($obj, $name, array $args=[])
 
static getNonPublicPropertyValue (object $obj, string $name)
 

Additional Inherited Members

- Data Fields inherited from ilTestBaseTestCase
const string MOCKED_METHOD_WITHOUT_OUTPUT = 'MOCKED_METHOD_WITHOUT_OUTPUT'
 
const string DYNAMIC_CLASS = 'DynamicClass'
 
- Protected Member Functions inherited from ilTestBaseTestCase
 setUp ()
 
 tearDown ()
 
- Protected Attributes inherited from ilTestBaseTestCase
Container $dic = null
 
Container $backup_dic = null
 
- Static Protected Attributes inherited from ilTestBaseTestCase
static int $DYNAMIC_CLASS_COUNT = 0
 

Detailed Description

Definition at line 23 of file SettingsIntroductionTest.php.

Member Function Documentation

◆ getAndWithExamConditionsCheckboxEnabledDataProvider()

static SettingsIntroductionTest::getAndWithExamConditionsCheckboxEnabledDataProvider ( )
static

Definition at line 78 of file SettingsIntroductionTest.php.

78 : array
79 {
80 return [
81 [true],
82 [false]
83 ];
84 }

◆ getAndWithIntroductionEnabledDataProvider()

static SettingsIntroductionTest::getAndWithIntroductionEnabledDataProvider ( )
static

Definition at line 34 of file SettingsIntroductionTest.php.

34 : array
35 {
36 return [
37 [true],
38 [false]
39 ];
40 }

◆ getAndWithIntroductionPageIdDataProvider()

static SettingsIntroductionTest::getAndWithIntroductionPageIdDataProvider ( )
static

Definition at line 59 of file SettingsIntroductionTest.php.

59 : array
60 {
61 return [
62 [null],
63 [-1],
64 [0],
65 [1]
66 ];
67 }

◆ getAndWithIntroductionTextDataProvider()

static SettingsIntroductionTest::getAndWithIntroductionTextDataProvider ( )
static

Definition at line 42 of file SettingsIntroductionTest.php.

42 : array
43 {
44 return [
45 [''],
46 ['string']
47 ];
48 }

◆ testGetAndWithExamConditionsCheckboxEnabled()

SettingsIntroductionTest::testGetAndWithExamConditionsCheckboxEnabled ( bool  $io)

Definition at line 70 of file SettingsIntroductionTest.php.

70 : void
71 {
72 $settings_introduction = (new SettingsIntroduction())->withExamConditionsCheckboxEnabled($io);
73
74 $this->assertInstanceOf(SettingsIntroduction::class, $settings_introduction);
75 $this->assertEquals($io, $settings_introduction->getExamConditionsCheckboxEnabled());
76 }

◆ testGetAndWithIntroductionEnabled()

SettingsIntroductionTest::testGetAndWithIntroductionEnabled ( bool  $io)

Definition at line 26 of file SettingsIntroductionTest.php.

26 : void
27 {
28 $settings_introduction = (new SettingsIntroduction())->withIntroductionEnabled($io);
29
30 $this->assertInstanceOf(SettingsIntroduction::class, $settings_introduction);
31 $this->assertEquals($io, $settings_introduction->getIntroductionEnabled());
32 }

◆ testGetAndWithIntroductionPageId()

SettingsIntroductionTest::testGetAndWithIntroductionPageId ( ?int  $io)

Definition at line 51 of file SettingsIntroductionTest.php.

51 : void
52 {
53 $settings_introduction = (new SettingsIntroduction())->withIntroductionPageId($io);
54
55 $this->assertInstanceOf(SettingsIntroduction::class, $settings_introduction);
56 $this->assertEquals($io, $settings_introduction->getIntroductionPageId());
57 }

The documentation for this class was generated from the following file: