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:
Diffstat (limited to 'apps/oauth2/tests')
-rw-r--r--apps/oauth2/tests/Settings/AdminTest.php12
1 files changed, 1 insertions, 11 deletions
diff --git a/apps/oauth2/tests/Settings/AdminTest.php b/apps/oauth2/tests/Settings/AdminTest.php
index 9c3d5ed1449..8b0883c7564 100644
--- a/apps/oauth2/tests/Settings/AdminTest.php
+++ b/apps/oauth2/tests/Settings/AdminTest.php
@@ -21,35 +21,25 @@
namespace OCA\OAuth2\Tests\Settings;
-use OCA\OAuth2\Db\ClientMapper;
use OCA\OAuth2\Settings\Admin;
use OCP\AppFramework\Http\TemplateResponse;
use Test\TestCase;
class AdminTest extends TestCase {
- /** @var ClientMapper|\PHPUnit_Framework_MockObject_MockObject */
- private $clientMapper;
/** @var Admin|\PHPUnit_Framework_MockObject_MockObject */
private $admin;
public function setUp() {
parent::setUp();
- $this->clientMapper = $this->createMock(ClientMapper::class);
- $this->admin = new Admin($this->clientMapper);
+ $this->admin = new Admin();
}
public function testGetForm() {
- $this->clientMapper
- ->expects($this->once())
- ->method('getClients')
- ->willReturn(['MyClients']);
-
$expected = new TemplateResponse(
'oauth2',
'admin',
[
- 'clients' => ['MyClients'],
],
''
);