ILIAS  trunk Revision v11.0_alpha-1843-g9e1fad99175
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
SettingsIntroductionTest Class Reference
+ Inheritance diagram for SettingsIntroductionTest:
+ Collaboration diagram for SettingsIntroductionTest:

Public Member Functions

 testGetAndWithIntroductionEnabled (bool $io)
 getAndWithIntroductionEnabledDataProvider More...
 
 testGetAndWithIntroductionText (string $io)
 getAndWithIntroductionTextDataProvider More...
 
 testGetAndWithIntroductionPageId (?int $io)
 getAndWithIntroductionPageIdDataProvider More...
 
 testGetAndWithExamConditionsCheckboxEnabled (bool $io)
 getAndWithExamConditionsCheckboxEnabledDataProvider More...
 

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=[])
 

Additional Inherited Members

- Protected Member Functions inherited from ilTestBaseTestCase
 setUp ()
 
 tearDown ()
 
- Protected Attributes inherited from ilTestBaseTestCase
Container $dic = null
 

Detailed Description

Definition at line 23 of file SettingsIntroductionTest.php.

Member Function Documentation

◆ getAndWithExamConditionsCheckboxEnabledDataProvider()

static SettingsIntroductionTest::getAndWithExamConditionsCheckboxEnabledDataProvider ( )
static

Definition at line 95 of file SettingsIntroductionTest.php.

95  : array
96  {
97  return [
98  [true],
99  [false]
100  ];
101  }

◆ getAndWithIntroductionEnabledDataProvider()

static SettingsIntroductionTest::getAndWithIntroductionEnabledDataProvider ( )
static

Definition at line 36 of file SettingsIntroductionTest.php.

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

◆ getAndWithIntroductionPageIdDataProvider()

static SettingsIntroductionTest::getAndWithIntroductionPageIdDataProvider ( )
static

Definition at line 74 of file SettingsIntroductionTest.php.

References null.

74  : array
75  {
76  return [
77  [null],
78  [-1],
79  [0],
80  [1]
81  ];
82  }
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null

◆ getAndWithIntroductionTextDataProvider()

static SettingsIntroductionTest::getAndWithIntroductionTextDataProvider ( )
static

Definition at line 55 of file SettingsIntroductionTest.php.

55  : array
56  {
57  return [
58  [''],
59  ['string']
60  ];
61  }

◆ testGetAndWithExamConditionsCheckboxEnabled()

SettingsIntroductionTest::testGetAndWithExamConditionsCheckboxEnabled ( bool  $io)

getAndWithExamConditionsCheckboxEnabledDataProvider

Definition at line 87 of file SettingsIntroductionTest.php.

87  : void
88  {
89  $settings_introduction = (new SettingsIntroduction(0))->withExamConditionsCheckboxEnabled($io);
90 
91  $this->assertInstanceOf(SettingsIntroduction::class, $settings_introduction);
92  $this->assertEquals($io, $settings_introduction->getExamConditionsCheckboxEnabled());
93  }

◆ testGetAndWithIntroductionEnabled()

SettingsIntroductionTest::testGetAndWithIntroductionEnabled ( bool  $io)

getAndWithIntroductionEnabledDataProvider

Definition at line 28 of file SettingsIntroductionTest.php.

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

◆ testGetAndWithIntroductionPageId()

SettingsIntroductionTest::testGetAndWithIntroductionPageId ( ?int  $io)

getAndWithIntroductionPageIdDataProvider

Definition at line 66 of file SettingsIntroductionTest.php.

66  : void
67  {
68  $settings_introduction = (new SettingsIntroduction(0))->withIntroductionPageId($io);
69 
70  $this->assertInstanceOf(SettingsIntroduction::class, $settings_introduction);
71  $this->assertEquals($io, $settings_introduction->getIntroductionPageId());
72  }

◆ testGetAndWithIntroductionText()

SettingsIntroductionTest::testGetAndWithIntroductionText ( string  $io)

getAndWithIntroductionTextDataProvider

Definition at line 47 of file SettingsIntroductionTest.php.

47  : void
48  {
49  $settings_introduction = (new SettingsIntroduction(0))->withIntroductionText($io);
50 
51  $this->assertInstanceOf(SettingsIntroduction::class, $settings_introduction);
52  $this->assertEquals($io, $settings_introduction->getIntroductionText());
53  }

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