Skip to content

Commit

Permalink
fixup! rebuild autoloader
Browse files Browse the repository at this point in the history
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
  • Loading branch information
rullzer committed Mar 18, 2020
1 parent e44c276 commit 5a40940
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tests/lib/AppTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

namespace Test;

use OC\App\AppManager;
use OC\App\InfoParser;
use OC\AppConfig;
use OCP\IAppConfig;
Expand Down Expand Up @@ -546,8 +547,8 @@ private function setupAppConfigMock() {
* @param IAppConfig $appConfig app config mock
*/
private function registerAppConfig(AppConfig $appConfig) {
$this->overwriteService('AppConfig', $appConfig);
$this->overwriteService('AppManager', new \OC\App\AppManager(
$this->overwriteService(AppConfig::class, $appConfig);
$this->overwriteService(AppManager::class, new \OC\App\AppManager(
\OC::$server->getUserSession(),
\OC::$server->getConfig(),
$appConfig,
Expand All @@ -562,8 +563,8 @@ private function registerAppConfig(AppConfig $appConfig) {
* Restore the original app config service.
*/
private function restoreAppConfig() {
$this->restoreService('AppConfig');
$this->restoreService('AppManager');
$this->restoreService(AppConfig::class);
$this->restoreService(AppManager::class);

// Remove the cache of the mocked apps list with a forceRefresh
\OC_App::getEnabledApps();
Expand Down

0 comments on commit 5a40940

Please sign in to comment.