ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ScoreReporting\SettingsResultSummaryTest Class Reference
+ Inheritance diagram for ScoreReporting\SettingsResultSummaryTest:
+ Collaboration diagram for ScoreReporting\SettingsResultSummaryTest:

Public Member Functions

 testConstruct ()
 
 testGetAndWithScoreReporting (ScoreReportingTypes $IO)
 
 testGetAndWithReportingDate (?\DateTimeImmutable $IO)
 
 testGetAndWithShowGradingStatusEnabled (bool $IO)
 
 testGetAndWithShowGradingMarkEnabled (bool $IO)
 
 testGetAndWithPassDeletionAllowed (bool $IO)
 
 testGetAndWithShowPassDetails (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 getAndWithScoreReportingDataProvider ()
 
static getAndWithReportingDateDataProvider ()
 
static getAndWithShowGradingStatusEnabledDataProvider ()
 
static getAndWithShowGradingMarkEnabledDataProvider ()
 
static getAndWithPassDeletionAllowedDataProvider ()
 
static getAndWithShowPassDetailsDataProvider ()
 
- 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 26 of file SettingsResultSummaryTest.php.

Member Function Documentation

◆ getAndWithPassDeletionAllowedDataProvider()

static ScoreReporting\SettingsResultSummaryTest::getAndWithPassDeletionAllowedDataProvider ( )
static

Definition at line 108 of file SettingsResultSummaryTest.php.

108 : array
109 {
110 return [
111 [false],
112 [true]
113 ];
114 }

◆ getAndWithReportingDateDataProvider()

static ScoreReporting\SettingsResultSummaryTest::getAndWithReportingDateDataProvider ( )
static

Definition at line 60 of file SettingsResultSummaryTest.php.

60 : array
61 {
62 return [
63 [null],
64 [new DateTimeImmutable()]
65 ];
66 }

◆ getAndWithScoreReportingDataProvider()

static ScoreReporting\SettingsResultSummaryTest::getAndWithScoreReportingDataProvider ( )
static

Definition at line 43 of file SettingsResultSummaryTest.php.

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

◆ getAndWithShowGradingMarkEnabledDataProvider()

static ScoreReporting\SettingsResultSummaryTest::getAndWithShowGradingMarkEnabledDataProvider ( )
static

Definition at line 92 of file SettingsResultSummaryTest.php.

92 : array
93 {
94 return [
95 [false],
96 [true]
97 ];
98 }

◆ getAndWithShowGradingStatusEnabledDataProvider()

static ScoreReporting\SettingsResultSummaryTest::getAndWithShowGradingStatusEnabledDataProvider ( )
static

Definition at line 76 of file SettingsResultSummaryTest.php.

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

◆ getAndWithShowPassDetailsDataProvider()

static ScoreReporting\SettingsResultSummaryTest::getAndWithShowPassDetailsDataProvider ( )
static

Definition at line 124 of file SettingsResultSummaryTest.php.

124 : array
125 {
126 return [
127 [false],
128 [true]
129 ];
130 }

◆ 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)

Definition at line 101 of file SettingsResultSummaryTest.php.

101 : void
102 {
103 $settingsResultSummary = new SettingsResultSummary(0);
104 $settingsResultSummary = $settingsResultSummary->withPassDeletionAllowed($IO);
105 $this->assertEquals($IO, $settingsResultSummary->getPassDeletionAllowed());
106 }

◆ testGetAndWithReportingDate()

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

Definition at line 53 of file SettingsResultSummaryTest.php.

53 : void
54 {
55 $settingsResultSummary = new SettingsResultSummary(0);
56 $settingsResultSummary = $settingsResultSummary->withReportingDate($IO);
57 $this->assertEquals($IO, $settingsResultSummary->getReportingDate());
58 }

◆ testGetAndWithScoreReporting()

ScoreReporting\SettingsResultSummaryTest::testGetAndWithScoreReporting ( ScoreReportingTypes  $IO)

Definition at line 35 of file SettingsResultSummaryTest.php.

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

◆ testGetAndWithShowGradingMarkEnabled()

ScoreReporting\SettingsResultSummaryTest::testGetAndWithShowGradingMarkEnabled ( bool  $IO)

Definition at line 85 of file SettingsResultSummaryTest.php.

85 : void
86 {
87 $settingsResultSummary = new SettingsResultSummary(0);
88 $settingsResultSummary = $settingsResultSummary->withShowGradingMarkEnabled($IO);
89 $this->assertEquals($IO, $settingsResultSummary->getShowGradingMarkEnabled());
90 }

◆ testGetAndWithShowGradingStatusEnabled()

ScoreReporting\SettingsResultSummaryTest::testGetAndWithShowGradingStatusEnabled ( bool  $IO)

Definition at line 69 of file SettingsResultSummaryTest.php.

69 : void
70 {
71 $settingsResultSummary = new SettingsResultSummary(0);
72 $settingsResultSummary = $settingsResultSummary->withShowGradingStatusEnabled($IO);
73 $this->assertEquals($IO, $settingsResultSummary->getShowGradingStatusEnabled());
74 }

◆ testGetAndWithShowPassDetails()

ScoreReporting\SettingsResultSummaryTest::testGetAndWithShowPassDetails ( bool  $IO)

Definition at line 117 of file SettingsResultSummaryTest.php.

117 : void
118 {
119 $settingsResultSummary = new SettingsResultSummary(0);
120 $settingsResultSummary = $settingsResultSummary->withShowPassDetails($IO);
121 $this->assertEquals($IO, $settingsResultSummary->getShowPassDetails());
122 }

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