diff options
author | Joas Schilling <coding@schilljs.com> | 2019-08-26 10:21:26 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2019-08-26 11:50:26 +0200 |
commit | db968cb1d415f1998be6df73b365ae5ca04686ad (patch) | |
tree | 74fd7d6894bd6380668e5be1bbc7f95cfc6ab69a /tests/lib | |
parent | 9b89baca14d9fb1319cef1f50ef6464da39d0fcc (diff) | |
download | nextcloud-server-db968cb1d415f1998be6df73b365ae5ca04686ad.tar.gz nextcloud-server-db968cb1d415f1998be6df73b365ae5ca04686ad.zip |
Cleanup the Settings class
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'tests/lib')
-rw-r--r-- | tests/lib/Settings/Admin/ServerTest.php | 25 |
1 files changed, 2 insertions, 23 deletions
diff --git a/tests/lib/Settings/Admin/ServerTest.php b/tests/lib/Settings/Admin/ServerTest.php index a121abc3df2..adf8ef4f363 100644 --- a/tests/lib/Settings/Admin/ServerTest.php +++ b/tests/lib/Settings/Admin/ServerTest.php @@ -23,44 +23,23 @@ namespace Test\Settings\Admin; -use Doctrine\DBAL\Platforms\SqlitePlatform; use OC\Settings\Admin\Server; use OCP\AppFramework\Http\TemplateResponse; use OCP\IConfig; -use OCP\IDBConnection; -use OCP\IL10N; -use OCP\IRequest; -use OCP\Lock\ILockingProvider; use Test\TestCase; class ServerTest extends TestCase { /** @var Server */ private $admin; - /** @var IDBConnection */ - private $dbConnection; - /** @var IRequest|\PHPUnit_Framework_MockObject_MockObject */ - private $request; /** @var IConfig */ private $config; - /** @var ILockingProvider */ - private $lockingProvider; - /** @var IL10N */ - private $l10n; public function setUp() { parent::setUp(); - $this->config = $this->getMockBuilder(IConfig::class)->getMock(); - $this->request = $this->createMock(IRequest::class); - $this->dbConnection = $this->getMockBuilder('\OCP\IDBConnection')->getMock(); - $this->lockingProvider = $this->getMockBuilder('\OCP\Lock\ILockingProvider')->getMock(); - $this->l10n = $this->getMockBuilder(IL10N::class)->getMock(); + $this->config = $this->createMock(IConfig::class); $this->admin = new Server( - $this->dbConnection, - $this->request, - $this->config, - $this->lockingProvider, - $this->l10n + $this->config ); } |