nextcloud-server/tests/lib
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
..
Accounts Use IAccountManager constants 2018-10-15 13:30:31 +02:00
Activity Remove deprecated publishActivity function 2018-10-05 12:55:45 +02:00
App add deck and mail to the groupware bundle, remove talk 2018-08-17 13:27:48 +02:00
AppFramework Adding handling of CIDR notation to trusted_proxies for IPv4 2018-10-30 09:15:42 +01:00
Archive
Authentication Move ExpiredTokenException to the correct namespace 2018-10-30 19:30:45 +01:00
BackgroundJob fixup! fixup! Add backgroundjobs to OCP 2018-10-09 15:25:56 +02:00
Cache
Calendar RoomManager/ResourceManager: Inject IServerContainer instead of using OC Server 2018-10-08 01:50:17 +02:00
Collaboration/Collaborators Fix injection to get the user id 2018-10-30 11:41:56 +01:00
Command
Comments Allow to filter the unread count by verb 2018-07-30 09:41:51 +02:00
Contacts/ContactsMenu
DB Fix tests 2018-08-08 12:58:50 +02:00
Diagnostics
Encryption skip already decrypted files on decrypt all command 2018-10-24 16:53:39 +02:00
Federation
Files fix writeStream for jail wrapper 2018-10-31 21:10:57 +01:00
GlobalScale
Group Tests fix 2018-06-15 23:00:59 +02:00
Hooks
Http/Client Fix HTTP client given options being overriden by default options 2018-06-14 21:36:04 +02:00
IntegrityCheck
L10N Add simple unit test for findLanguageFromLocale 2018-09-23 20:12:00 +02:00
Lock prevent lock values from going negative with memcache backend 2018-07-05 14:39:10 +02:00
Lockdown
Log Fix tests 2018-10-02 18:37:57 +02:00
Mail Swift to \Swift_Mailer as abstraction 2018-07-04 08:28:33 +02:00
Memcache Drop support for xcache 2018-08-12 17:14:08 +02:00
Migration
Notification
OCS
Preview Only generate previews in powers of 4 and set min 2018-10-31 19:34:42 +01:00
PublicNamespace
Remote
Repair
RichObjectStrings
Security Disallow unsafe-eval by default 2018-10-14 20:45:34 +02:00
Session
Settings Fix reference to template in tests 2018-10-08 11:27:22 +02:00
Share Get rid of shareItem 2018-05-23 19:51:37 +02:00
Share20 Fix update share tests 2018-11-02 01:09:01 +01:00
Support/CrashReport Add breadcrumb support to crash reporters 2018-09-05 20:58:39 +02:00
SystemTag
Template Fix tests 2018-10-29 13:06:55 +01:00
Traits
Updater Backend work to provide NC whats New info to users 2018-07-05 14:33:08 +02:00
User filter null values for UserManager::getByEmail 2018-10-15 13:27:58 +02:00
Util
AllConfigTest.php
APITest.php
AppConfigTest.php
AppTest.php always enable cloud federation api 2018-07-02 12:43:43 +02:00
AutoLoaderTest.php
AvatarManagerTest.php
AvatarTest.php fixup! Fix comment and cap-height 2018-10-23 14:30:23 +02:00
CapabilitiesManagerTest.php
ConfigTest.php
ContactsManagerTest.php
DateTimeFormatterTest.php
ErrorHandlerTest.php
FileChunkingTest.php
FilesTest.php
HelperStorageTest.php
HookHelper.php
ImageTest.php
InfoXmlTest.php
InstallerTest.php
LargeFileHelperGetFileSizeTest.php
LargeFileHelperTest.php
LegacyHelperTest.php Deprecate unused, private OC_Helper::linkToPublic 2018-10-08 18:29:52 +02:00
LoggerTest.php revert Log's dependency to SystemConfig to work during Installation 2018-04-26 12:10:53 +02:00
MemoryInfoTest.php Adds license to files. Updates the branch. 2018-08-20 20:46:23 +02:00
NaturalSortTest.php
NavigationManagerTest.php Fixed phpunit 2018-07-13 14:47:00 +02:00
RepairStepTest.php
ServerTest.php
SetupTest.php Add more test cases 2018-09-30 12:24:38 +02:00
SubAdminTest.php
TagsTest.php Get rid of shareItem 2018-05-23 19:51:37 +02:00
TemplateFunctionsTest.php
TempManagerTest.php
TestCase.php whitelist audit.log 2018-06-29 11:03:13 +02:00
TestMoveableMountPoint.php
UpdaterTest.php Revert "Wait for cron to finish before running upgrade command" 2018-11-01 15:23:40 +01:00
UrlGeneratorTest.php Add function to generate urls for OCS routes 2018-10-09 15:41:50 +02:00
UtilCheckServerTest.php
UtilTest.php