Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
Signed-off-by: Maxence Lange <[email protected]>
  • Loading branch information
ArtificialOwl committed Mar 22, 2024
1 parent 6482249 commit 837a165
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/lib/AppConfigTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@

use InvalidArgumentException;
use OC\AppConfig;
use OC\AppFramework\Bootstrap\Coordinator;
use OCP\Exceptions\AppConfigTypeConflictException;
use OCP\Exceptions\AppConfigUnknownKeyException;
use OCP\IAppConfig;
Expand All @@ -44,6 +45,8 @@ class AppConfigTest extends TestCase {
protected IDBConnection $connection;
private LoggerInterface $logger;
private ICrypto $crypto;
private Coordinator $coordinator;

private array $originalConfig;

/**
Expand Down Expand Up @@ -104,6 +107,7 @@ protected function setUp(): void {
$this->connection = \OCP\Server::get(IDBConnection::class);
$this->logger = \OCP\Server::get(LoggerInterface::class);
$this->crypto = \OCP\Server::get(ICrypto::class);
$this->coordinator = \OCP\Server::get(Coordinator::class);

// storing current config and emptying the data table
$sql = $this->connection->getQueryBuilder();
Expand Down Expand Up @@ -194,6 +198,7 @@ private function generateAppConfig(bool $preLoading = true): IAppConfig {
$this->connection,
$this->logger,
$this->crypto,
$this->coordinator
);
$msg = ' generateAppConfig() failed to confirm cache status';

Expand Down

0 comments on commit 837a165

Please sign in to comment.