diff options
author | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2020-11-12 08:25:36 +0100 |
---|---|---|
committer | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2020-11-12 11:57:31 +0100 |
commit | e997f0fa46620bbb58e5539ddcefd8da6ac579da (patch) | |
tree | 5b18f9567be739ee556745645d726ceda441540f /tests | |
parent | 8f1fff40e8c2026d9dd9e7fcbef6c0f6a532fece (diff) | |
download | nextcloud-server-e997f0fa46620bbb58e5539ddcefd8da6ac579da.tar.gz nextcloud-server-e997f0fa46620bbb58e5539ddcefd8da6ac579da.zip |
Fix unit test for verifying enforced valid expiration date.
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>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/Share20/ManagerTest.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/lib/Share20/ManagerTest.php b/tests/lib/Share20/ManagerTest.php index aaeceff0997..559e3a29639 100644 --- a/tests/lib/Share20/ManagerTest.php +++ b/tests/lib/Share20/ManagerTest.php @@ -889,6 +889,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(); |