diff options
author | Carl Schwan <carl@carlschwan.eu> | 2022-05-20 17:07:21 +0200 |
---|---|---|
committer | Carl Schwan <carl@carlschwan.eu> | 2022-07-14 12:16:13 +0200 |
commit | 53db418ee90eb366dc4488afcb02c8a6d5085097 (patch) | |
tree | de00140c7fd92bf85bdf6853197abbf093396849 /apps/oauth2/tests | |
parent | d3f66e2310ef790794aba81f12d7ab6a035736c3 (diff) | |
download | nextcloud-server-53db418ee90eb366dc4488afcb02c8a6d5085097.tar.gz nextcloud-server-53db418ee90eb366dc4488afcb02c8a6d5085097.zip |
Cleanup oauth2 admin settings
- Use more vue components
- Add link to doc
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Diffstat (limited to 'apps/oauth2/tests')
-rw-r--r-- | apps/oauth2/tests/Settings/AdminTest.php | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/apps/oauth2/tests/Settings/AdminTest.php b/apps/oauth2/tests/Settings/AdminTest.php index 93a9c528420..fc5ebbb8365 100644 --- a/apps/oauth2/tests/Settings/AdminTest.php +++ b/apps/oauth2/tests/Settings/AdminTest.php @@ -26,7 +26,8 @@ namespace OCA\OAuth2\Tests\Settings; use OCA\OAuth2\Db\ClientMapper; use OCA\OAuth2\Settings\Admin; use OCP\AppFramework\Http\TemplateResponse; -use OCP\IInitialStateService; +use OCP\AppFramework\Services\IInitialState; +use OCP\IURLGenerator; use PHPUnit\Framework\MockObject\MockObject; use Test\TestCase; @@ -36,7 +37,7 @@ class AdminTest extends TestCase { private $admin; /** @var IInitialStateService|MockObject */ - private $initialStateService; + private $initialState; /** @var ClientMapper|MockObject */ private $clientMapper; @@ -44,10 +45,10 @@ class AdminTest extends TestCase { protected function setUp(): void { parent::setUp(); - $this->initialStateService = $this->createMock(IInitialStateService::class); + $this->initialState = $this->createMock(IInitialState::class); $this->clientMapper = $this->createMock(ClientMapper::class); - $this->admin = new Admin($this->initialStateService, $this->clientMapper); + $this->admin = new Admin($this->initialState, $this->clientMapper, $this->createMock(IURLGenerator::class)); } public function testGetForm() { |