aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2024-06-18 11:27:29 +0200
committerRobin Appelman <robin@icewind.nl>2024-06-18 14:46:19 +0200
commite74f71b32e0943bacd3af5e2d37dd794fa7058e4 (patch)
tree982b744b94912d93200fc3bb599db6b1ce45d6b3 /tests
parentd9b37ac5fa11afd519fadf3bb2f9a81f74cf7e4d (diff)
downloadnextcloud-server-e74f71b32e0943bacd3af5e2d37dd794fa7058e4.tar.gz
nextcloud-server-e74f71b32e0943bacd3af5e2d37dd794fa7058e4.zip
feat: add setup check for needed mimetype migrations
Signed-off-by: Robin Appelman <robin@icewind.nl>
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([]);