diff options
author | Carl Schwan <carl@carlschwan.eu> | 2022-03-15 19:17:36 +0300 |
---|---|---|
committer | Carl Schwan <carl@carlschwan.eu> | 2022-03-16 15:14:15 +0300 |
commit | fa266165d6d38f963dd44e227ee076799697f482 (patch) | |
tree | 482f7ad48d68e4fc233cb9857eee41ad35df8f8d /apps/comments/tests | |
parent | 3e067edcbe80797a70118f613ac4b752ce512992 (diff) |
Modernize comments app
* Use php 7.4 typed properties
* More typed methods (and replace existing php doc in some cases)
* query -> get for Container
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Diffstat (limited to 'apps/comments/tests')
-rw-r--r-- | apps/comments/tests/Unit/AppInfo/ApplicationTest.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/comments/tests/Unit/AppInfo/ApplicationTest.php b/apps/comments/tests/Unit/AppInfo/ApplicationTest.php index 710a517f035..6e3658c0e5b 100644 --- a/apps/comments/tests/Unit/AppInfo/ApplicationTest.php +++ b/apps/comments/tests/Unit/AppInfo/ApplicationTest.php @@ -52,7 +52,7 @@ class ApplicationTest extends TestCase { $c = $app->getContainer(); // assert service instances in the container are properly setup - $s = $c->query('NotificationsController'); + $s = $c->get('NotificationsController'); $this->assertInstanceOf('OCA\Comments\Controller\Notifications', $s); $services = [ @@ -65,7 +65,7 @@ class ApplicationTest extends TestCase { ]; foreach ($services as $service) { - $s = $c->query($service); + $s = $c->get($service); $this->assertInstanceOf($service, $s); } } |