]> source.dussan.org Git - nextcloud-server.git/commit
Fix unit test for verifying enforced expire date too far in the future
authorDaniel Calviño Sánchez <danxuliu@gmail.com>
Wed, 11 Nov 2020 19:50:23 +0000 (20:50 +0100)
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>
Mon, 16 Nov 2020 13:16:49 +0000 (13:16 +0000)
commit20c72ac03e3e6360261f074bccf632f60abff73d
tree6ef72f5f1805ae98519e1df31c30ba7aff761d2b
parent22357a72e5887264cb37dd52e4927d1fac78ed80
Fix unit test for verifying enforced expire date too far in the future

The test should fail if no exception was thrown, and no exception was
thrown due to a missing configuration parameter. However, the use of
"addToAssertionCount(1)" made the test pass even if no exception was
thrown and, therefore, to silently fail.

Now the missing configuration parameter was added and the test will fail
if the expected exception is not thrown.

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