]> source.dussan.org Git - nextcloud-server.git/commit
Fix unit test for expiration date without date but with default
authorDaniel Calviño Sánchez <danxuliu@gmail.com>
Thu, 12 Nov 2020 08:34:58 +0000 (09:34 +0100)
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>
Mon, 16 Nov 2020 13:16:53 +0000 (13:16 +0000)
commit115a988cd29fcc0d0e629bd815096614d48bf269
tree14f9f728e75d397a0d693ae6bb696e22f57d60eb
parenteaa43d22e29c1b8f8877a78433d9c8dabb9ec4a3
Fix unit test for expiration date without date but with default

The expiration date was explicitly given, so it was not testing what it
should. Moreover, "link_defaultExpDays" needs to be mapped when testing
the default value (even if it will just fallback to the value of
"shareapi_expire_after_n_days").

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