diff options
Diffstat (limited to 'apps/theming/tests/Controller/UserThemeControllerTest.php')
-rw-r--r-- | apps/theming/tests/Controller/UserThemeControllerTest.php | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/apps/theming/tests/Controller/UserThemeControllerTest.php b/apps/theming/tests/Controller/UserThemeControllerTest.php index b830bb5b065..9a8c1cd19aa 100644 --- a/apps/theming/tests/Controller/UserThemeControllerTest.php +++ b/apps/theming/tests/Controller/UserThemeControllerTest.php @@ -92,9 +92,7 @@ class UserThemeControllerTest extends TestCase { ]; } - /** - * @dataProvider dataTestThemes - */ + #[\PHPUnit\Framework\Attributes\DataProvider('dataTestThemes')] public function testEnableTheme(string $themeId, ?string $exception = null): void { $this->themesService ->expects($this->any()) @@ -109,9 +107,7 @@ class UserThemeControllerTest extends TestCase { $this->assertEquals($expected, $this->userThemeController->enableTheme($themeId)); } - /** - * @dataProvider dataTestThemes - */ + #[\PHPUnit\Framework\Attributes\DataProvider('dataTestThemes')] public function testDisableTheme(string $themeId, ?string $exception = null): void { $this->themesService ->expects($this->any()) |