aboutsummaryrefslogtreecommitdiffstats
path: root/tests/Core/Command/Preview
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Core/Command/Preview')
-rw-r--r--tests/Core/Command/Preview/CleanupTest.php4
-rw-r--r--tests/Core/Command/Preview/RepairTest.php4
2 files changed, 2 insertions, 6 deletions
diff --git a/tests/Core/Command/Preview/CleanupTest.php b/tests/Core/Command/Preview/CleanupTest.php
index 5549fcf6d44..e4a83246e5b 100644
--- a/tests/Core/Command/Preview/CleanupTest.php
+++ b/tests/Core/Command/Preview/CleanupTest.php
@@ -100,9 +100,7 @@ class CleanupTest extends TestCase {
$this->assertEquals(1, $this->repair->run($this->input, $this->output));
}
- /**
- * @dataProvider dataForTestCleanupWithDeleteException
- */
+ #[\PHPUnit\Framework\Attributes\DataProvider('dataForTestCleanupWithDeleteException')]
public function testCleanupWithDeleteException(string $exceptionClass, string $errorMessage): void {
$previewFolder = $this->createMock(Folder::class);
$previewFolder->expects($this->once())
diff --git a/tests/Core/Command/Preview/RepairTest.php b/tests/Core/Command/Preview/RepairTest.php
index 167a29f44ae..9b9cde6dd95 100644
--- a/tests/Core/Command/Preview/RepairTest.php
+++ b/tests/Core/Command/Preview/RepairTest.php
@@ -111,9 +111,7 @@ class RepairTest extends TestCase {
];
}
- /**
- * @dataProvider dataEmptyTest
- */
+ #[\PHPUnit\Framework\Attributes\DataProvider('dataEmptyTest')]
public function testEmptyExecute($directoryNames, $expectedOutput): void {
$previewFolder = $this->getMockBuilder(Folder::class)
->getMock();