ILIAS  trunk Revision v11.0_alpha-1749-g1a06bdef097
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ScoreReporting\SettingsResultSummaryTest Class Reference
+ Inheritance diagram for ScoreReporting\SettingsResultSummaryTest:
+ Collaboration diagram for ScoreReporting\SettingsResultSummaryTest:

Public Member Functions

 testConstruct ()
 
 testGetAndWithScoreReporting (ScoreReportingTypes $IO)
 getAndWithScoreReportingDataProvider More...
 
 testGetAndWithReportingDate (?\DateTimeImmutable $IO)
 getAndWithReportingDateDataProvider More...
 
 testGetAndWithShowGradingStatusEnabled (bool $IO)
 getAndWithShowGradingStatusEnabledDataProvider More...
 
 testGetAndWithShowGradingMarkEnabled (bool $IO)
 getAndWithShowGradingMarkEnabledDataProvider More...
 
 testGetAndWithPassDeletionAllowed (bool $IO)
 getAndWithPassDeletionAllowedDataProvider More...
 
 testGetAndWithShowPassDetails (bool $IO)
 getAndWithShowPassDetailsDataProvider More...
 

Static Public Member Functions

static getAndWithScoreReportingDataProvider ()
 
static getAndWithReportingDateDataProvider ()
 
static getAndWithShowGradingStatusEnabledDataProvider ()
 
static getAndWithShowGradingMarkEnabledDataProvider ()
 
static getAndWithPassDeletionAllowedDataProvider ()
 
static getAndWithShowPassDetailsDataProvider ()
 
- 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 26 of file SettingsResultSummaryTest.php.

Member Function Documentation

◆ getAndWithPassDeletionAllowedDataProvider()

static ScoreReporting\SettingsResultSummaryTest::getAndWithPassDeletionAllowedDataProvider ( )
static

Definition at line 118 of file SettingsResultSummaryTest.php.

118  : array
119  {
120  return [
121  [false],
122  [true]
123  ];
124  }

◆ getAndWithReportingDateDataProvider()

static ScoreReporting\SettingsResultSummaryTest::getAndWithReportingDateDataProvider ( )
static

Definition at line 64 of file SettingsResultSummaryTest.php.

References null.

64  : array
65  {
66  return [
67  [null],
68  [new DateTimeImmutable()]
69  ];
70  }
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null

◆ getAndWithScoreReportingDataProvider()

static ScoreReporting\SettingsResultSummaryTest::getAndWithScoreReportingDataProvider ( )
static

Definition at line 45 of file SettingsResultSummaryTest.php.

45  : array
46  {
47  return [
48  [ScoreReportingTypes::SCORE_REPORTING_DISABLED],
49  [ScoreReportingTypes::SCORE_REPORTING_FINISHED],
50  [ScoreReportingTypes::SCORE_REPORTING_AFTER_PASSED]
51  ];
52  }

◆ getAndWithShowGradingMarkEnabledDataProvider()

static ScoreReporting\SettingsResultSummaryTest::getAndWithShowGradingMarkEnabledDataProvider ( )
static

Definition at line 100 of file SettingsResultSummaryTest.php.

100  : array
101  {
102  return [
103  [false],
104  [true]
105  ];
106  }

◆ getAndWithShowGradingStatusEnabledDataProvider()

static ScoreReporting\SettingsResultSummaryTest::getAndWithShowGradingStatusEnabledDataProvider ( )
static

Definition at line 82 of file SettingsResultSummaryTest.php.

82  : array
83  {
84  return [
85  [false],
86  [true]
87  ];
88  }

◆ getAndWithShowPassDetailsDataProvider()

static ScoreReporting\SettingsResultSummaryTest::getAndWithShowPassDetailsDataProvider ( )
static

Definition at line 136 of file SettingsResultSummaryTest.php.

136  : array
137  {
138  return [
139  [false],
140  [true]
141  ];
142  }

◆ testConstruct()

ScoreReporting\SettingsResultSummaryTest::testConstruct ( )

Definition at line 28 of file SettingsResultSummaryTest.php.

28  : void
29  {
30  $settingsResultSummary = new SettingsResultSummary(0);
31  $this->assertInstanceOf(SettingsResultSummary::class, $settingsResultSummary);
32  }

◆ testGetAndWithPassDeletionAllowed()

ScoreReporting\SettingsResultSummaryTest::testGetAndWithPassDeletionAllowed ( bool  $IO)

getAndWithPassDeletionAllowedDataProvider

Definition at line 111 of file SettingsResultSummaryTest.php.

111  : void
112  {
113  $settingsResultSummary = new SettingsResultSummary(0);
114  $settingsResultSummary = $settingsResultSummary->withPassDeletionAllowed($IO);
115  $this->assertEquals($IO, $settingsResultSummary->getPassDeletionAllowed());
116  }

◆ testGetAndWithReportingDate()

ScoreReporting\SettingsResultSummaryTest::testGetAndWithReportingDate ( ?\DateTimeImmutable  $IO)

getAndWithReportingDateDataProvider

Definition at line 57 of file SettingsResultSummaryTest.php.

57  : void
58  {
59  $settingsResultSummary = new SettingsResultSummary(0);
60  $settingsResultSummary = $settingsResultSummary->withReportingDate($IO);
61  $this->assertEquals($IO, $settingsResultSummary->getReportingDate());
62  }

◆ testGetAndWithScoreReporting()

ScoreReporting\SettingsResultSummaryTest::testGetAndWithScoreReporting ( ScoreReportingTypes  $IO)

getAndWithScoreReportingDataProvider

Definition at line 37 of file SettingsResultSummaryTest.php.

37  : void
38  {
39  $this->assertEquals(
40  $IO,
41  (new SettingsResultSummary(0))->withScoreReporting($IO)->getScoreReporting()
42  );
43  }

◆ testGetAndWithShowGradingMarkEnabled()

ScoreReporting\SettingsResultSummaryTest::testGetAndWithShowGradingMarkEnabled ( bool  $IO)

getAndWithShowGradingMarkEnabledDataProvider

Definition at line 93 of file SettingsResultSummaryTest.php.

93  : void
94  {
95  $settingsResultSummary = new SettingsResultSummary(0);
96  $settingsResultSummary = $settingsResultSummary->withShowGradingMarkEnabled($IO);
97  $this->assertEquals($IO, $settingsResultSummary->getShowGradingMarkEnabled());
98  }

◆ testGetAndWithShowGradingStatusEnabled()

ScoreReporting\SettingsResultSummaryTest::testGetAndWithShowGradingStatusEnabled ( bool  $IO)

getAndWithShowGradingStatusEnabledDataProvider

Definition at line 75 of file SettingsResultSummaryTest.php.

75  : void
76  {
77  $settingsResultSummary = new SettingsResultSummary(0);
78  $settingsResultSummary = $settingsResultSummary->withShowGradingStatusEnabled($IO);
79  $this->assertEquals($IO, $settingsResultSummary->getShowGradingStatusEnabled());
80  }

◆ testGetAndWithShowPassDetails()

ScoreReporting\SettingsResultSummaryTest::testGetAndWithShowPassDetails ( bool  $IO)

getAndWithShowPassDetailsDataProvider

Definition at line 129 of file SettingsResultSummaryTest.php.

129  : void
130  {
131  $settingsResultSummary = new SettingsResultSummary(0);
132  $settingsResultSummary = $settingsResultSummary->withShowPassDetails($IO);
133  $this->assertEquals($IO, $settingsResultSummary->getShowPassDetails());
134  }

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