From 1580c8612b01bfa780d1a7372080a27d182fb7dd Mon Sep 17 00:00:00 2001 From: Côme Chilliet Date: Thu, 10 Oct 2024 12:40:31 +0200 Subject: chore(apps): Apply new rector configuration to autouse classes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Côme Chilliet --- apps/provisioning_api/tests/Controller/AppsControllerTest.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'apps/provisioning_api/tests/Controller/AppsControllerTest.php') diff --git a/apps/provisioning_api/tests/Controller/AppsControllerTest.php b/apps/provisioning_api/tests/Controller/AppsControllerTest.php index 9c815a52178..51980ce7ed2 100644 --- a/apps/provisioning_api/tests/Controller/AppsControllerTest.php +++ b/apps/provisioning_api/tests/Controller/AppsControllerTest.php @@ -8,7 +8,9 @@ namespace OCA\Provisioning_API\Tests\Controller; use OCA\Provisioning_API\Controller\AppsController; +use OCA\Provisioning_API\Tests\TestCase; use OCP\App\IAppManager; +use OCP\AppFramework\OCS\OCSException; use OCP\IRequest; use OCP\IUserSession; @@ -19,7 +21,7 @@ use OCP\IUserSession; * * @package OCA\Provisioning_API\Tests */ -class AppsControllerTest extends \OCA\Provisioning_API\Tests\TestCase { +class AppsControllerTest extends TestCase { /** @var IAppManager */ private $appManager; /** @var AppsController */ @@ -57,7 +59,7 @@ class AppsControllerTest extends \OCA\Provisioning_API\Tests\TestCase { public function testGetAppInfoOnBadAppID(): void { - $this->expectException(\OCP\AppFramework\OCS\OCSException::class); + $this->expectException(OCSException::class); $this->expectExceptionCode(998); $this->api->getAppInfo('not_provisioning_api'); @@ -94,7 +96,7 @@ class AppsControllerTest extends \OCA\Provisioning_API\Tests\TestCase { public function testGetAppsInvalidFilter(): void { - $this->expectException(\OCP\AppFramework\OCS\OCSException::class); + $this->expectException(OCSException::class); $this->expectExceptionCode(101); $this->api->getApps('foo'); -- cgit v1.2.3