Skip to content

Commit

Permalink
fixup! feat: Add config flag to disable preview generation
Browse files Browse the repository at this point in the history
  • Loading branch information
juliusknorr committed Feb 1, 2025
1 parent a581f1c commit aea22a3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/lib/AppConfigTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

use OCA\Richdocuments\AppConfig;
use OCP\App\IAppManager;
use OCP\AppFramework\Services\IAppConfig;
use OCP\GlobalScale\IConfig as IGlobalScaleConfig;
use OCP\IConfig;
use PHPUnit\Framework\MockObject\MockObject;
use Test\TestCase;
Expand All @@ -17,13 +19,17 @@ class AppConfigTest extends TestCase {
private $config;
/** @var AppConfig */
private $appConfig;
/** @var IAppConfig */
private $appConfig;

public function setUp(): void {
parent::setUp();
$this->config = $this->createMock(IConfig::class);
$this->appManager = $this->createMock(IAppManager::class);
$this->appConfig = $this->createMock(IAppConfig::class);
$this->gsConfig = $this->createMock(IGlobalScaleConfig::class)

$this->appConfig = new AppConfig($this->config, $this->appManager, $this->createMock(\OCP\GlobalScale\IConfig::class));
$this->appConfig = new AppConfig($this->config, $this->appConfig, $this->appManager, $this->gsConfig);
}

public function testGetAppValueArrayWithValues() {
Expand Down

0 comments on commit aea22a3

Please sign in to comment.