diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2023-05-30 17:48:20 +0200 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2023-05-30 17:48:20 +0200 |
commit | 3d1acca1f389db89298f5b8445118b75c56c5e7f (patch) | |
tree | 6512a2b0b02d995acdfaeee75f2c3583396d4271 /tests/lib | |
parent | 3053df7b7c87c34fcb3ed54835f6cb21461db92c (diff) | |
download | nextcloud-server-3d1acca1f389db89298f5b8445118b75c56c5e7f.tar.gz nextcloud-server-3d1acca1f389db89298f5b8445118b75c56c5e7f.zip |
chore(app): Do not clear unused cache key
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'tests/lib')
-rw-r--r-- | tests/lib/App/AppManagerTest.php | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/tests/lib/App/AppManagerTest.php b/tests/lib/App/AppManagerTest.php index 3518ada3314..d597b216041 100644 --- a/tests/lib/App/AppManagerTest.php +++ b/tests/lib/App/AppManagerTest.php @@ -133,14 +133,7 @@ class AppManagerTest extends TestCase { ); } - protected function expectClearCache() { - $this->cache->expects($this->once()) - ->method('clear') - ->with('listApps'); - } - public function testEnableApp() { - $this->expectClearCache(); // making sure "files_trashbin" is disabled if ($this->manager->isEnabledForUser('files_trashbin')) { $this->manager->disableApp('files_trashbin'); @@ -151,7 +144,6 @@ class AppManagerTest extends TestCase { } public function testDisableApp() { - $this->expectClearCache(); $this->eventDispatcher->expects($this->once())->method('dispatchTyped')->with(new AppDisableEvent('files_trashbin')); $this->manager->disableApp('files_trashbin'); $this->assertEquals('no', $this->appConfig->getValue('files_trashbin', 'enabled', 'no')); @@ -180,7 +172,6 @@ class AppManagerTest extends TestCase { ->willReturn('group2'); $groups = [$group1, $group2]; - $this->expectClearCache(); /** @var AppManager|MockObject $manager */ $manager = $this->getMockBuilder(AppManager::class) @@ -229,7 +220,6 @@ class AppManagerTest extends TestCase { ->willReturn('group2'); $groups = [$group1, $group2]; - $this->expectClearCache(); /** @var AppManager|MockObject $manager */ $manager = $this->getMockBuilder(AppManager::class) |