aboutsummaryrefslogtreecommitdiffstats
path: root/apps/oauth2/tests
diff options
context:
space:
mode:
authorCarl Schwan <carl@carlschwan.eu>2022-05-20 17:07:21 +0200
committerCarl Schwan <carl@carlschwan.eu>2022-07-14 12:16:13 +0200
commit53db418ee90eb366dc4488afcb02c8a6d5085097 (patch)
treede00140c7fd92bf85bdf6853197abbf093396849 /apps/oauth2/tests
parentd3f66e2310ef790794aba81f12d7ab6a035736c3 (diff)
downloadnextcloud-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.php9
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() {