From 8b510362fa581ac35159aac5584f971be8bcde89 Mon Sep 17 00:00:00 2001 From: Nils Haagen Date: Fri, 14 Jun 2024 10:27:45 +0200 Subject: [PATCH] PHPUnit: fix some DataProviders --- .../MainSettings/ilObjTestMainSettingsTest.php | 16 ++++++++-------- .../Test/tests/Results/ilTestPassResultTest.php | 2 +- .../tests/assFormulaQuestionTest.php | 2 +- .../ilAssQuestionSkillAssignmentRegistryTest.php | 2 +- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/components/ILIAS/Test/tests/MainSettings/ilObjTestMainSettingsTest.php b/components/ILIAS/Test/tests/MainSettings/ilObjTestMainSettingsTest.php index d6f3a68d6229..5c0d08682660 100644 --- a/components/ILIAS/Test/tests/MainSettings/ilObjTestMainSettingsTest.php +++ b/components/ILIAS/Test/tests/MainSettings/ilObjTestMainSettingsTest.php @@ -141,7 +141,7 @@ public static function getAndWithTestIdDataProvider(): array } /** - * @ dataProvider getAndWithGeneralSettingsDataProvider + * @dataProvider getAndWithGeneralSettingsDataProvider */ public function testGetAndWithGeneralSettings(\Closure $IO): void { @@ -173,7 +173,7 @@ public static function getAndWithGeneralSettingsDataProvider(): array } /** - * @ dataProvider getAndWithIntroductionSettingsDataProvider + * @dataProvider getAndWithIntroductionSettingsDataProvider */ public function testGetAndWithIntroductionSettings(\Closure $IO): void { @@ -205,7 +205,7 @@ public static function getAndWithIntroductionSettingsDataProvider(): array } /** - * @ dataProvider getAndWithAccessSettingsDataProvider + * @dataProvider getAndWithAccessSettingsDataProvider */ public function testGetAndWithAccessSettings(\Closure $IO): void { @@ -237,7 +237,7 @@ public static function getAndWithAccessSettingsDataProvider(): array } /** - * @ dataProvider getAndWithTestBehaviourSettingsDataProvider + * @dataProvider getAndWithTestBehaviourSettingsDataProvider */ public function testGetAndWithTestBehaviourSettings(\Closure $IO): void { @@ -269,7 +269,7 @@ public static function getAndWithTestBehaviourSettingsDataProvider(): array } /** - * @ dataProvider getAndWithQuestionBehaviourSettingsDataProvider + * @dataProvider getAndWithQuestionBehaviourSettingsDataProvider */ public function testGetAndWithQuestionBehaviourSettings(\Closure $IO): void { @@ -301,7 +301,7 @@ public static function getAndWithQuestionBehaviourSettingsDataProvider(): array } /** - * @ dataProvider getAndWithParticipantFunctionalitySettingsDataProvider + * @dataProvider getAndWithParticipantFunctionalitySettingsDataProvider */ public function testGetAndWithParticipantFunctionalitySettings(\Closure $IO): void { @@ -333,7 +333,7 @@ public static function getAndWithParticipantFunctionalitySettingsDataProvider(): } /** - * @ dataProvider getAndWithFinishingSettingsDataProvider + * @dataProvider getAndWithFinishingSettingsDataProvider */ public function testGetAndWithFinishingSettings(\Closure $IO): void { @@ -365,7 +365,7 @@ public static function getAndWithFinishingSettingsDataProvider(): array } /** - * @ dataProvider getAndWithAdditionalSettingsDataProvider + * @dataProvider getAndWithAdditionalSettingsDataProvider */ public function testGetAndWithAdditionalSettings(\Closure $IO): void { diff --git a/components/ILIAS/Test/tests/Results/ilTestPassResultTest.php b/components/ILIAS/Test/tests/Results/ilTestPassResultTest.php index efaaea379ad2..eb5ae94812ba 100644 --- a/components/ILIAS/Test/tests/Results/ilTestPassResultTest.php +++ b/components/ILIAS/Test/tests/Results/ilTestPassResultTest.php @@ -93,7 +93,7 @@ public static function getPassDataProvider(): array } /** - * @ dataProvider getQuestionResultsDataProvider + * @dataProvider getQuestionResultsDataProvider */ public function testGetQuestionResults(\Closure $IO): void { diff --git a/components/ILIAS/TestQuestionPool/tests/assFormulaQuestionTest.php b/components/ILIAS/TestQuestionPool/tests/assFormulaQuestionTest.php index d1e0b54e9c59..7993444eb861 100755 --- a/components/ILIAS/TestQuestionPool/tests/assFormulaQuestionTest.php +++ b/components/ILIAS/TestQuestionPool/tests/assFormulaQuestionTest.php @@ -43,7 +43,7 @@ protected function setUp(): void } /** - * @ dataProvider simpleRatedCalculationsData + * @dataProvider simpleRatedCalculationsData * @param assFormulaQuestionResult $result * @param assFormulaQuestionVariable[] $variables * @param assFormulaQuestionUnit[] $results diff --git a/components/ILIAS/TestQuestionPool/tests/ilAssQuestionSkillAssignmentRegistryTest.php b/components/ILIAS/TestQuestionPool/tests/ilAssQuestionSkillAssignmentRegistryTest.php index fa45d3949a00..05e55a91c9ed 100755 --- a/components/ILIAS/TestQuestionPool/tests/ilAssQuestionSkillAssignmentRegistryTest.php +++ b/components/ILIAS/TestQuestionPool/tests/ilAssQuestionSkillAssignmentRegistryTest.php @@ -36,7 +36,7 @@ public function setUp(): void } /** - * @ dataProvider serializedData + * @dataProvider serializedData * @param $value * @param $chunkSize * @param callable $preCallback