31 $this->assertInstanceOf(SettingsResultSummary::class, $settingsResultSummary);
34 #[\PHPUnit\Framework\Attributes\DataProvider('getAndWithScoreReportingDataProvider')]
46 [ScoreReportingTypes::SCORE_REPORTING_DISABLED],
47 [ScoreReportingTypes::SCORE_REPORTING_FINISHED],
48 [ScoreReportingTypes::SCORE_REPORTING_AFTER_PASSED]
52 #[\PHPUnit\Framework\Attributes\DataProvider('getAndWithReportingDateDataProvider')]
56 $settingsResultSummary = $settingsResultSummary->withReportingDate($IO);
57 $this->assertEquals($IO, $settingsResultSummary->getReportingDate());
64 [
new DateTimeImmutable()]
68 #[\PHPUnit\Framework\Attributes\DataProvider('getAndWithShowGradingStatusEnabledDataProvider')]
72 $settingsResultSummary = $settingsResultSummary->withShowGradingStatusEnabled($IO);
73 $this->assertEquals($IO, $settingsResultSummary->getShowGradingStatusEnabled());
84 #[\PHPUnit\Framework\Attributes\DataProvider('getAndWithShowGradingMarkEnabledDataProvider')]
88 $settingsResultSummary = $settingsResultSummary->withShowGradingMarkEnabled($IO);
89 $this->assertEquals($IO, $settingsResultSummary->getShowGradingMarkEnabled());
100 #[\PHPUnit\Framework\Attributes\DataProvider('getAndWithPassDeletionAllowedDataProvider')]
104 $settingsResultSummary = $settingsResultSummary->withPassDeletionAllowed($IO);
105 $this->assertEquals($IO, $settingsResultSummary->getPassDeletionAllowed());
116 #[\PHPUnit\Framework\Attributes\DataProvider('getAndWithShowPassDetailsDataProvider')]
120 $settingsResultSummary = $settingsResultSummary->withShowPassDetails($IO);
121 $this->assertEquals($IO, $settingsResultSummary->getShowPassDetails());
static getAndWithShowGradingMarkEnabledDataProvider()
testGetAndWithScoreReporting(ScoreReportingTypes $IO)
static getAndWithReportingDateDataProvider()
static getAndWithScoreReportingDataProvider()
static getAndWithShowPassDetailsDataProvider()
testGetAndWithReportingDate(?\DateTimeImmutable $IO)
testGetAndWithShowPassDetails(bool $IO)
static getAndWithShowGradingStatusEnabledDataProvider()
static getAndWithPassDeletionAllowedDataProvider()
testGetAndWithShowGradingMarkEnabled(bool $IO)
testGetAndWithShowGradingStatusEnabled(bool $IO)
testGetAndWithPassDeletionAllowed(bool $IO)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...