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:29:45 +0300
committerRoeland Jago Douma <roeland@famdouma.nl>2018-06-19 12:42:41 +0300
commit27259ea2a21cf0227be12bc9bfc2c997bc6ee44f (patch)
treea0336ade58d01fca822d1fae56a30d3b80289378 /apps/oauth2/tests
parent1ccb36a0f1169a416669498d23d8dab1305f5f45 (diff)
Fix AdminTests
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
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'],
],
''
);