diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2018-06-13 21:29:45 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2018-06-19 11:42:41 +0200 |
commit | 27259ea2a21cf0227be12bc9bfc2c997bc6ee44f (patch) | |
tree | a0336ade58d01fca822d1fae56a30d3b80289378 /apps/oauth2/tests | |
parent | 1ccb36a0f1169a416669498d23d8dab1305f5f45 (diff) | |
download | nextcloud-server-27259ea2a21cf0227be12bc9bfc2c997bc6ee44f.tar.gz nextcloud-server-27259ea2a21cf0227be12bc9bfc2c997bc6ee44f.zip |
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.php | 12 |
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'], ], '' ); |