Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2018-06-13 22:25:21 +0300
committerRoeland Jago Douma <roeland@famdouma.nl>2018-06-19 12:42:41 +0300
commit1ccb36a0f1169a416669498d23d8dab1305f5f45 (patch)
tree89a87f422ff2ec56509b1b5a65a5a59b5a118cb3 /apps/oauth2/tests
parentb6182489be8cc0820b3138e25afda912b9a98d9f (diff)
Cleanup Controller
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/oauth2/tests')
-rw-r--r--apps/oauth2/tests/Controller/SettingsControllerTest.php6
1 files changed, 0 insertions, 6 deletions
diff --git a/apps/oauth2/tests/Controller/SettingsControllerTest.php b/apps/oauth2/tests/Controller/SettingsControllerTest.php
index b0c6035cddb..5dddbc65e4c 100644
--- a/apps/oauth2/tests/Controller/SettingsControllerTest.php
+++ b/apps/oauth2/tests/Controller/SettingsControllerTest.php
@@ -27,17 +27,13 @@ use OCA\OAuth2\Db\AccessTokenMapper;
use OCA\OAuth2\Db\Client;
use OCA\OAuth2\Db\ClientMapper;
use OCP\AppFramework\Http\JSONResponse;
-use OCP\AppFramework\Http\RedirectResponse;
use OCP\IRequest;
-use OCP\IURLGenerator;
use OCP\Security\ISecureRandom;
use Test\TestCase;
class SettingsControllerTest extends TestCase {
/** @var IRequest|\PHPUnit_Framework_MockObject_MockObject */
private $request;
- /** @var IURLGenerator|\PHPUnit_Framework_MockObject_MockObject */
- private $urlGenerator;
/** @var ClientMapper|\PHPUnit_Framework_MockObject_MockObject */
private $clientMapper;
/** @var ISecureRandom|\PHPUnit_Framework_MockObject_MockObject */
@@ -53,7 +49,6 @@ class SettingsControllerTest extends TestCase {
parent::setUp();
$this->request = $this->createMock(IRequest::class);
- $this->urlGenerator = $this->createMock(IURLGenerator::class);
$this->clientMapper = $this->createMock(ClientMapper::class);
$this->secureRandom = $this->createMock(ISecureRandom::class);
$this->accessTokenMapper = $this->createMock(AccessTokenMapper::class);
@@ -62,7 +57,6 @@ class SettingsControllerTest extends TestCase {
$this->settingsController = new SettingsController(
'oauth2',
$this->request,
- $this->urlGenerator,
$this->clientMapper,
$this->secureRandom,
$this->accessTokenMapper,