]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix unit test for verifying enforced valid expiration date.
authorDaniel Calviño Sánchez <danxuliu@gmail.com>
Thu, 12 Nov 2020 07:25:36 +0000 (08:25 +0100)
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>
Mon, 16 Nov 2020 13:16:51 +0000 (13:16 +0000)
The enforced expiration date was not actually enabled, as for that
"shareapi_default_expire_date" needs to be explicitly set to "yes".

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
tests/lib/Share20/ManagerTest.php

index f242e1cd5e241e30b973f7a89a98da2b19a3ec1a..f8ea26c0994d45b4dfe6b1e117d50b952dae6029 100644 (file)
@@ -886,6 +886,7 @@ class ManagerTest extends \Test\TestCase {
                        ->willReturnMap([
                                ['core', 'shareapi_enforce_expire_date', 'no', 'yes'],
                                ['core', 'shareapi_expire_after_n_days', '7', '3'],
+                               ['core', 'shareapi_default_expire_date', 'no', 'yes'],
                        ]);
 
                $hookListener = $this->getMockBuilder('Dummy')->setMethods(['listener'])->getMock();