aboutsummaryrefslogtreecommitdiffstats
path: root/apps/settings/tests/AppInfo/ApplicationTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/settings/tests/AppInfo/ApplicationTest.php')
-rw-r--r--apps/settings/tests/AppInfo/ApplicationTest.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/apps/settings/tests/AppInfo/ApplicationTest.php b/apps/settings/tests/AppInfo/ApplicationTest.php
index 85be8c56178..3e895d87b06 100644
--- a/apps/settings/tests/AppInfo/ApplicationTest.php
+++ b/apps/settings/tests/AppInfo/ApplicationTest.php
@@ -39,7 +39,7 @@ class ApplicationTest extends TestCase {
public function testContainerAppName(): void {
$this->app = new Application();
- $this->assertEquals('settings', $this->container->getAppName());
+ $this->assertEquals('settings', $this->container->get('appName'));
}
public static function dataContainerQuery(): array {
@@ -56,9 +56,7 @@ class ApplicationTest extends TestCase {
];
}
- /**
- * @dataProvider dataContainerQuery
- */
+ #[\PHPUnit\Framework\Attributes\DataProvider('dataContainerQuery')]
public function testContainerQuery(string $service, string $expected): void {
$this->assertTrue($this->container->query($service) instanceof $expected);
}