aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2024-06-19 11:09:15 +0200
committerGitHub <noreply@github.com>2024-06-19 11:09:15 +0200
commit441dfd6646ed5491610f4a7d02afda08e2748fc2 (patch)
tree33332d1a920cf3f233ea1542150c4d9da33cd6bc /tests
parentab8556872e95f4e2ee909ef09af777dab891f297 (diff)
parente74f71b32e0943bacd3af5e2d37dd794fa7058e4 (diff)
downloadnextcloud-server-441dfd6646ed5491610f4a7d02afda08e2748fc2.tar.gz
nextcloud-server-441dfd6646ed5491610f4a7d02afda08e2748fc2.zip
Merge pull request #45930 from nextcloud/repair-mimetype-expensive
fix: move repair mimetype repair step to the expensive steps
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/Repair/RepairMimeTypesTest.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/lib/Repair/RepairMimeTypesTest.php b/tests/lib/Repair/RepairMimeTypesTest.php
index b7076b32e77..fbccd393fd0 100644
--- a/tests/lib/Repair/RepairMimeTypesTest.php
+++ b/tests/lib/Repair/RepairMimeTypesTest.php
@@ -39,10 +39,12 @@ class RepairMimeTypesTest extends \Test\TestCase {
$config = $this->getMockBuilder(IConfig::class)
->disableOriginalConstructor()
->getMock();
- $config->expects($this->any())
- ->method('getSystemValueString')
+ $config->method('getSystemValueString')
->with('version')
->willReturn('11.0.0.0');
+ $config->method('getAppValue')
+ ->with('files', 'mimetype_version')
+ ->willReturn('11.0.0.0');
$this->storage = new \OC\Files\Storage\Temporary([]);