diff options
author | Gary Kim <gary@garykim.dev> | 2021-06-30 02:20:33 +0300 |
---|---|---|
committer | Gary Kim <gary@garykim.dev> | 2021-06-30 22:28:02 +0300 |
commit | b78f3a57d1d05fb5f81ec8361139b64a3e54d7b0 (patch) | |
tree | c2051ba8b5b03b8e4152e7597a8a3ac4457980c6 /apps/federation | |
parent | 6da9ccc9ee1e37932c6580e9831c74bbeeac741b (diff) |
Migrate HintException to OCP
Signed-off-by: Gary Kim <gary@garykim.dev>
Diffstat (limited to 'apps/federation')
7 files changed, 8 insertions, 8 deletions
diff --git a/apps/federation/lib/Controller/SettingsController.php b/apps/federation/lib/Controller/SettingsController.php index 86c1df89caf..970211e4103 100644 --- a/apps/federation/lib/Controller/SettingsController.php +++ b/apps/federation/lib/Controller/SettingsController.php @@ -23,10 +23,10 @@ */ namespace OCA\Federation\Controller; -use OC\HintException; use OCA\Federation\TrustedServers; use OCP\AppFramework\Controller; use OCP\AppFramework\Http\DataResponse; +use OCP\HintException; use OCP\IL10N; use OCP\IRequest; diff --git a/apps/federation/lib/DbHandler.php b/apps/federation/lib/DbHandler.php index ce4d1d7e44a..1dd0d1fc1c4 100644 --- a/apps/federation/lib/DbHandler.php +++ b/apps/federation/lib/DbHandler.php @@ -28,7 +28,7 @@ namespace OCA\Federation; use OC\Files\Filesystem; -use OC\HintException; +use OCP\HintException; use OCP\IDBConnection; use OCP\IL10N; diff --git a/apps/federation/lib/Middleware/AddServerMiddleware.php b/apps/federation/lib/Middleware/AddServerMiddleware.php index 2cfdad133ca..de6f7786679 100644 --- a/apps/federation/lib/Middleware/AddServerMiddleware.php +++ b/apps/federation/lib/Middleware/AddServerMiddleware.php @@ -28,12 +28,12 @@ */ namespace OCA\Federation\Middleware; -use OC\HintException; use OCA\Federation\Controller\SettingsController; use OCP\AppFramework\Controller; use OCP\AppFramework\Http; use OCP\AppFramework\Http\JSONResponse; use OCP\AppFramework\Middleware; +use OCP\HintException; use OCP\IL10N; use OCP\ILogger; diff --git a/apps/federation/lib/TrustedServers.php b/apps/federation/lib/TrustedServers.php index c1dced62102..57b9a505499 100644 --- a/apps/federation/lib/TrustedServers.php +++ b/apps/federation/lib/TrustedServers.php @@ -27,11 +27,11 @@ */ namespace OCA\Federation; -use OC\HintException; use OCA\Federation\BackgroundJob\RequestSharedSecret; use OCP\AppFramework\Http; use OCP\AppFramework\Utility\ITimeFactory; use OCP\BackgroundJob\IJobList; +use OCP\HintException; use OCP\Http\Client\IClientService; use OCP\IConfig; use OCP\ILogger; diff --git a/apps/federation/tests/Controller/SettingsControllerTest.php b/apps/federation/tests/Controller/SettingsControllerTest.php index 1f3617de389..856dcaa533f 100644 --- a/apps/federation/tests/Controller/SettingsControllerTest.php +++ b/apps/federation/tests/Controller/SettingsControllerTest.php @@ -88,7 +88,7 @@ class SettingsControllerTest extends TestCase { * @param bool $isOwnCloud */ public function testAddServerFail($isTrustedServer, $isOwnCloud) { - $this->expectException(\OC\HintException::class); + $this->expectException(\OCP\HintException::class); $this->trustedServers ->expects($this->any()) @@ -136,7 +136,7 @@ class SettingsControllerTest extends TestCase { * @param bool $isOwnCloud */ public function testCheckServerFail($isTrustedServer, $isOwnCloud) { - $this->expectException(\OC\HintException::class); + $this->expectException(\OCP\HintException::class); $this->trustedServers ->expects($this->any()) diff --git a/apps/federation/tests/Middleware/AddServerMiddlewareTest.php b/apps/federation/tests/Middleware/AddServerMiddlewareTest.php index fdd9d1682d4..c3370cdbe90 100644 --- a/apps/federation/tests/Middleware/AddServerMiddlewareTest.php +++ b/apps/federation/tests/Middleware/AddServerMiddlewareTest.php @@ -26,10 +26,10 @@ */ namespace OCA\Federation\Tests\Middleware; -use OC\HintException; use OCA\Federation\Controller\SettingsController; use OCA\Federation\Middleware\AddServerMiddleware; use OCP\AppFramework\Http; +use OCP\HintException; use OCP\IL10N; use OCP\ILogger; use Test\TestCase; diff --git a/apps/federation/tests/TrustedServersTest.php b/apps/federation/tests/TrustedServersTest.php index 3dd237ffcd3..3dd93a445cd 100644 --- a/apps/federation/tests/TrustedServersTest.php +++ b/apps/federation/tests/TrustedServersTest.php @@ -311,7 +311,7 @@ class TrustedServersTest extends TestCase { * @dataProvider dataTestCheckOwnCloudVersionTooLow */ public function testCheckOwnCloudVersionTooLow($status) { - $this->expectException(\OC\HintException::class); + $this->expectException(\OCP\HintException::class); $this->expectExceptionMessage('Remote server version is too low. 9.0 is required.'); $this->invokePrivate($this->trustedServers, 'checkOwnCloudVersion', [$status]); |