summaryrefslogtreecommitdiffstats
path: root/apps/provisioning_api/tests/Controller/AppsControllerTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/provisioning_api/tests/Controller/AppsControllerTest.php')
-rw-r--r--apps/provisioning_api/tests/Controller/AppsControllerTest.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/apps/provisioning_api/tests/Controller/AppsControllerTest.php b/apps/provisioning_api/tests/Controller/AppsControllerTest.php
index 1056d3ba4c1..5cd440e4202 100644
--- a/apps/provisioning_api/tests/Controller/AppsControllerTest.php
+++ b/apps/provisioning_api/tests/Controller/AppsControllerTest.php
@@ -72,11 +72,11 @@ class AppsControllerTest extends \OCA\Provisioning_API\Tests\TestCase {
$this->assertEquals($expected, $result->getData());
}
- /**
- * @expectedException \OCP\AppFramework\OCS\OCSException
- * @expectedExceptionCode 998
- */
+
public function testGetAppInfoOnBadAppID() {
+ $this->expectException(\OCP\AppFramework\OCS\OCSException::class);
+ $this->expectExceptionCode(998);
+
$this->api->getAppInfo('not_provisioning_api');
}
@@ -109,11 +109,11 @@ class AppsControllerTest extends \OCA\Provisioning_API\Tests\TestCase {
$this->assertEquals(count($disabled), count($data['apps']));
}
- /**
- * @expectedException \OCP\AppFramework\OCS\OCSException
- * @expectedExceptionCode 101
- */
+
public function testGetAppsInvalidFilter() {
+ $this->expectException(\OCP\AppFramework\OCS\OCSException::class);
+ $this->expectExceptionCode(101);
+
$this->api->getApps('foo');
}
}