mirror of
https://github.com/nextcloud/server.git
synced 2026-04-22 23:03:00 -04:00
chore: Adapt installer tests to class change in constructor
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
parent
a3102bb2f0
commit
ee97f7a56a
1 changed files with 8 additions and 12 deletions
|
|
@ -8,6 +8,7 @@
|
|||
|
||||
namespace Test;
|
||||
|
||||
use OC\App\AppManager;
|
||||
use OC\App\AppStore\Fetcher\AppFetcher;
|
||||
use OC\Archive\ZIP;
|
||||
use OC\Installer;
|
||||
|
|
@ -30,17 +31,12 @@ use Psr\Log\LoggerInterface;
|
|||
class InstallerTest extends TestCase {
|
||||
private static $appid = 'testapp';
|
||||
private $appstore;
|
||||
/** @var AppFetcher|\PHPUnit\Framework\MockObject\MockObject */
|
||||
private $appFetcher;
|
||||
/** @var IClientService|\PHPUnit\Framework\MockObject\MockObject */
|
||||
private $clientService;
|
||||
/** @var ITempManager|\PHPUnit\Framework\MockObject\MockObject */
|
||||
private $tempManager;
|
||||
/** @var LoggerInterface|\PHPUnit\Framework\MockObject\MockObject */
|
||||
private $logger;
|
||||
/** @var IConfig|\PHPUnit\Framework\MockObject\MockObject */
|
||||
private $config;
|
||||
private IAppManager&MockObject $appManager;
|
||||
private AppFetcher&MockObject $appFetcher;
|
||||
private IClientService&MockObject $clientService;
|
||||
private ITempManager&MockObject $tempManager;
|
||||
private LoggerInterface&MockObject $logger;
|
||||
private IConfig&MockObject $config;
|
||||
private AppManager&MockObject $appManager;
|
||||
private IFactory&MockObject $l10nFactory;
|
||||
|
||||
protected function setUp(): void {
|
||||
|
|
@ -51,7 +47,7 @@ class InstallerTest extends TestCase {
|
|||
$this->tempManager = $this->createMock(ITempManager::class);
|
||||
$this->logger = $this->createMock(LoggerInterface::class);
|
||||
$this->config = $this->createMock(IConfig::class);
|
||||
$this->appManager = $this->createMock(IAppManager::class);
|
||||
$this->appManager = $this->createMock(AppManager::class);
|
||||
$this->l10nFactory = $this->createMock(IFactory::class);
|
||||
|
||||
$config = Server::get(IConfig::class);
|
||||
|
|
|
|||
Loading…
Reference in a new issue