Add new dependency
This commit is contained in:
parent
65d1472005
commit
c16c411275
1 changed files with 7 additions and 1 deletions
|
@ -29,6 +29,7 @@ use OCP\AppFramework\Http\RedirectResponse;
|
|||
use OCP\Http\Client\IClientService;
|
||||
use OCP\IConfig;
|
||||
use OCP\IL10N;
|
||||
use OCP\ILogger;
|
||||
use OCP\IRequest;
|
||||
use OCP\IURLGenerator;
|
||||
use OC_Util;
|
||||
|
@ -68,6 +69,8 @@ class CheckSetupControllerTest extends TestCase {
|
|||
private $util;
|
||||
/** @var IL10N */
|
||||
private $l10n;
|
||||
/** @var ILogger */
|
||||
private $logger;
|
||||
/** @var Checker */
|
||||
private $checker;
|
||||
|
||||
|
@ -95,6 +98,7 @@ class CheckSetupControllerTest extends TestCase {
|
|||
}));
|
||||
$this->checker = $this->getMockBuilder('\OC\IntegrityCheck\Checker')
|
||||
->disableOriginalConstructor()->getMock();
|
||||
$this->logger = $this->getMockBuilder('\OCP\ILogger')->getMock();
|
||||
$this->checkSetupController = $this->getMockBuilder('\OC\Settings\Controller\CheckSetupController')
|
||||
->setConstructorArgs([
|
||||
'settings',
|
||||
|
@ -105,6 +109,7 @@ class CheckSetupControllerTest extends TestCase {
|
|||
$this->util,
|
||||
$this->l10n,
|
||||
$this->checker,
|
||||
$this->logger
|
||||
])
|
||||
->setMethods(['getCurlVersion'])->getMock();
|
||||
}
|
||||
|
@ -373,7 +378,8 @@ class CheckSetupControllerTest extends TestCase {
|
|||
$this->urlGenerator,
|
||||
$this->util,
|
||||
$this->l10n,
|
||||
$this->checker
|
||||
$this->checker,
|
||||
$this->logger
|
||||
])
|
||||
->setMethods(null)->getMock();
|
||||
|
||||
|
|
Loading…
Reference in a new issue