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
path: root/apps
diff options
context:
space:
mode:
authorStefan <Stefan.Schilling@EXXETA.com>2021-09-15 22:21:20 +0300
committerStefan <Stefan.Schilling@EXXETA.com>2021-09-17 14:32:42 +0300
commitea4b7bac7a4dcd619efad91fc6c7e813ed344d64 (patch)
tree23bfd88b918e6fd2198f4be8049e112fceff241d /apps
parenteb460116800e6776d35e262421561dfd04c66ae8 (diff)
Issue 16719: CheckSetupController.php: now injecting reference to ITempManager, rather than obtaining using it manually
Signed-off-by: Stefan <Stefan.Schilling@EXXETA.com>
Diffstat (limited to 'apps')
-rw-r--r--apps/settings/tests/Controller/CheckSetupControllerTest.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/settings/tests/Controller/CheckSetupControllerTest.php b/apps/settings/tests/Controller/CheckSetupControllerTest.php
index 5cfab1ccf2d..1924ddda951 100644
--- a/apps/settings/tests/Controller/CheckSetupControllerTest.php
+++ b/apps/settings/tests/Controller/CheckSetupControllerTest.php
@@ -52,6 +52,7 @@ use OCP\IDateTimeFormatter;
use OCP\IDBConnection;
use OCP\IL10N;
use OCP\IRequest;
+use OCP\ITempManager;
use OCP\IURLGenerator;
use OCP\Lock\ILockingProvider;
use PHPUnit\Framework\MockObject\MockObject;
@@ -99,6 +100,8 @@ class CheckSetupControllerTest extends TestCase {
private $iniGetWrapper;
/** @var IDBConnection|\PHPUnit\Framework\MockObject\MockObject */
private $connection;
+ /** @var ITempManager|\PHPUnit\Framework\MockObject\MockObject */
+ private $tempManager;
/**
* Holds a list of directories created during tests.
@@ -141,6 +144,7 @@ class CheckSetupControllerTest extends TestCase {
$this->iniGetWrapper = $this->getMockBuilder(IniGetWrapper::class)->getMock();
$this->connection = $this->getMockBuilder(IDBConnection::class)
->disableOriginalConstructor()->getMock();
+ $this->tempManager = $this->getMockBuilder(ITempManager::class)->getMock();
$this->checkSetupController = $this->getMockBuilder(CheckSetupController::class)
->setConstructorArgs([
'settings',
@@ -159,6 +163,7 @@ class CheckSetupControllerTest extends TestCase {
$this->secureRandom,
$this->iniGetWrapper,
$this->connection,
+ $this->tempManager,
])
->setMethods([
'isReadOnlyConfig',
@@ -181,6 +186,7 @@ class CheckSetupControllerTest extends TestCase {
'hasBigIntConversionPendingColumns',
'isMysqlUsedWithoutUTF8MB4',
'isEnoughTempSpaceAvailableIfS3PrimaryStorageIsUsed',
+ 'isEnoughTempSpaceAvailableIfS3PrimaryStorageIsUsed',
])->getMock();
}