aboutsummaryrefslogtreecommitdiffstats
path: root/tests/Core/Command/Log
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Core/Command/Log')
-rw-r--r--tests/Core/Command/Log/FileTest.php4
-rw-r--r--tests/Core/Command/Log/ManageTest.php8
2 files changed, 3 insertions, 9 deletions
diff --git a/tests/Core/Command/Log/FileTest.php b/tests/Core/Command/Log/FileTest.php
index e75cf75b927..1aaf398b875 100644
--- a/tests/Core/Command/Log/FileTest.php
+++ b/tests/Core/Command/Log/FileTest.php
@@ -72,9 +72,7 @@ class FileTest extends TestCase {
];
}
- /**
- * @dataProvider changeRotateSizeProvider
- */
+ #[\PHPUnit\Framework\Attributes\DataProvider('changeRotateSizeProvider')]
public function testChangeRotateSize($optionValue, $configValue): void {
$this->config->method('getSystemValue')->willReturnArgument(1);
$this->consoleInput->method('getOption')
diff --git a/tests/Core/Command/Log/ManageTest.php b/tests/Core/Command/Log/ManageTest.php
index d8714eb88d4..8b307048719 100644
--- a/tests/Core/Command/Log/ManageTest.php
+++ b/tests/Core/Command/Log/ManageTest.php
@@ -100,9 +100,7 @@ class ManageTest extends TestCase {
];
}
- /**
- * @dataProvider dataConvertLevelString
- */
+ #[\PHPUnit\Framework\Attributes\DataProvider('dataConvertLevelString')]
public function testConvertLevelString(string $levelString, int $expectedInt): void {
$this->assertEquals($expectedInt,
self::invokePrivate($this->command, 'convertLevelString', [$levelString])
@@ -126,9 +124,7 @@ class ManageTest extends TestCase {
];
}
- /**
- * @dataProvider dataConvertLevelNumber
- */
+ #[\PHPUnit\Framework\Attributes\DataProvider('dataConvertLevelNumber')]
public function testConvertLevelNumber(int $levelNum, string $expectedString): void {
$this->assertEquals($expectedString,
self::invokePrivate($this->command, 'convertLevelNumber', [$levelNum])