]> source.dussan.org Git - nextcloud-server.git/commitdiff
Correctly refresh the apps list after removing the mock
authorJoas Schilling <nickvergessen@gmx.de>
Fri, 14 Nov 2014 11:51:59 +0000 (12:51 +0100)
committerJoas Schilling <nickvergessen@gmx.de>
Wed, 19 Nov 2014 09:06:12 +0000 (10:06 +0100)
tests/lib/app.php

index e538ebec8a0fb2f66cb487e34167ae26272783a4..e8289f58a26dcb8fa490e44d0324349e097b037d 100644 (file)
@@ -460,6 +460,9 @@ class Test_App extends PHPUnit_Framework_TestCase {
                \OC::$server->registerService('AppConfig', function ($c) use ($oldService){
                        return $oldService;
                });
+
+               // Remove the cache of the mocked apps list with a forceRefresh
+               \OC_App::getEnabledApps(true);
        }
 }