nextcloud/tests/lib/Share20
Daniel Calviño Sánchez 00e4c8aee4 Fix update share tests
The update share tests only checked that the share returned by
"update()" had the expected values. However, as "update()" returns the
same share that was given as a parameter the tests were not really
verifying that the values were updated in the database.

In a similar way, the test that checked that a password was removed did
not set a password first, so even if the database returned null it could
be simply returning the default value for the share; a password must be
set first to ensure that it is removed.

Besides that, a typo was fixed too that made the checks on the original
share instead of on the one returned by "update()"; right now it is the
same share, so the change makes no difference, but it is how the check
should be done anyway.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-11-02 01:09:01 +01:00
..
DefaultShareProviderTest.php Fix update share tests 2018-11-02 01:09:01 +01:00
LegacyHooksTest.php Move pre_shared and post_shared events to EventDispatcher 2017-08-03 15:14:29 +02:00
ManagerTest.php Add support for tokens in room shares 2018-08-08 14:25:44 +02:00
ShareHelperTest.php Add more tests for the share helper 2017-04-13 12:58:53 +02:00
ShareTest.php Fix getMock Share 2016-09-07 20:42:38 +02:00