diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2019-08-26 19:29:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-26 19:29:57 +0200 |
commit | 505f10044ab93f3b7d7a1be77ad9c41a5a90b341 (patch) | |
tree | 75fec19122d2c3ab3c3291f86561a4f079ee7b1a /tests | |
parent | 6df6fc562404f885bd02e125391620d4153c8f95 (diff) | |
parent | db968cb1d415f1998be6df73b365ae5ca04686ad (diff) | |
download | nextcloud-server-505f10044ab93f3b7d7a1be77ad9c41a5a90b341.tar.gz nextcloud-server-505f10044ab93f3b7d7a1be77ad9c41a5a90b341.zip |
Merge pull request #16865 from nextcloud/bugfix/noid/5-min-cron
Cron should run every 5 mins
Diffstat (limited to 'tests')
-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 ); } |