diff options
author | Robin Appelman <robin@icewind.nl> | 2024-06-18 11:27:29 +0200 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2024-06-21 11:37:13 +0200 |
commit | 5a9e8e7d3f7a219ae3408bf1d9d7632fe48b6d53 (patch) | |
tree | 3031faa16ab93af5300d6271725d2a8e18bf021c /tests | |
parent | cea49e089897d2b671aaf5b1f7dbabb56c3c9925 (diff) | |
download | nextcloud-server-5a9e8e7d3f7a219ae3408bf1d9d7632fe48b6d53.tar.gz nextcloud-server-5a9e8e7d3f7a219ae3408bf1d9d7632fe48b6d53.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.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/lib/Repair/RepairMimeTypesTest.php b/tests/lib/Repair/RepairMimeTypesTest.php index 61cf5858241..a5f0c7f5dd3 100644 --- a/tests/lib/Repair/RepairMimeTypesTest.php +++ b/tests/lib/Repair/RepairMimeTypesTest.php @@ -41,10 +41,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([]); |