diff options
Diffstat (limited to 'tests/Core/Command/Config/App/DeleteConfigTest.php')
-rw-r--r-- | tests/Core/Command/Config/App/DeleteConfigTest.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/Core/Command/Config/App/DeleteConfigTest.php b/tests/Core/Command/Config/App/DeleteConfigTest.php index 1e44c2aafe6..6f7bfbf3a7c 100644 --- a/tests/Core/Command/Config/App/DeleteConfigTest.php +++ b/tests/Core/Command/Config/App/DeleteConfigTest.php @@ -9,6 +9,7 @@ declare(strict_types=1); namespace Tests\Core\Command\Config\App; +use OC\Config\ConfigManager; use OC\Core\Command\Config\App\DeleteConfig; use OCP\IAppConfig; use PHPUnit\Framework\MockObject\MockObject; @@ -19,6 +20,7 @@ use Test\TestCase; class DeleteConfigTest extends TestCase { protected IAppConfig&MockObject $appConfig; + protected ConfigManager&MockObject $configManager; protected InputInterface&MockObject $consoleInput; protected OutputInterface&MockObject $consoleOutput; protected Command $command; @@ -27,10 +29,11 @@ class DeleteConfigTest extends TestCase { parent::setUp(); $this->appConfig = $this->createMock(IAppConfig::class); + $this->configManager = $this->createMock(ConfigManager::class); $this->consoleInput = $this->createMock(InputInterface::class); $this->consoleOutput = $this->createMock(OutputInterface::class); - $this->command = new DeleteConfig($this->appConfig); + $this->command = new DeleteConfig($this->appConfig, $this->configManager); } |