aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/App/InfoParserTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/App/InfoParserTest.php')
-rw-r--r--tests/lib/App/InfoParserTest.php10
1 files changed, 3 insertions, 7 deletions
diff --git a/tests/lib/App/InfoParserTest.php b/tests/lib/App/InfoParserTest.php
index 028c98eca87..f7c6a2eb7bd 100644
--- a/tests/lib/App/InfoParserTest.php
+++ b/tests/lib/App/InfoParserTest.php
@@ -13,7 +13,7 @@ use OCP\Cache\CappedMemoryCache;
use Test\TestCase;
class InfoParserTest extends TestCase {
- /** @var OCP\Cache\CappedMemoryCache */
+ /** @var CappedMemoryCache */
private static $cache;
public static function setUpBeforeClass(): void {
@@ -32,16 +32,12 @@ class InfoParserTest extends TestCase {
$this->assertEquals($expectedData, $data);
}
- /**
- * @dataProvider providesInfoXml
- */
+ #[\PHPUnit\Framework\Attributes\DataProvider('providesInfoXml')]
public function testParsingValidXmlWithoutCache($expectedJson, $xmlFile): void {
$this->parserTest($expectedJson, $xmlFile);
}
- /**
- * @dataProvider providesInfoXml
- */
+ #[\PHPUnit\Framework\Attributes\DataProvider('providesInfoXml')]
public function testParsingValidXmlWithCache($expectedJson, $xmlFile): void {
$this->parserTest($expectedJson, $xmlFile, self::$cache);
}