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:
authorJoas Schilling <coding@schilljs.com>2019-08-26 11:21:26 +0300
committerJoas Schilling <coding@schilljs.com>2019-08-26 12:50:26 +0300
commitdb968cb1d415f1998be6df73b365ae5ca04686ad (patch)
tree74fd7d6894bd6380668e5be1bbc7f95cfc6ab69a /tests/lib/Settings
parent9b89baca14d9fb1319cef1f50ef6464da39d0fcc (diff)
Cleanup the Settings class
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'tests/lib/Settings')
-rw-r--r--tests/lib/Settings/Admin/ServerTest.php25
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
);
}