nextcloud/tests/lib
Carl Schwan eef973e85b Minor optimizations for saving user personal information
* Remove double hook: the OC_User::changeUser triggers an
OC\AccountManager::userUpdated and the app is already listening to this
signal in its Application definition

* Make createCard not check if an card exists if we already checked
  previously. We also don't try to get the card if the user is disabled
  as we don't use the card in this case

We this change we go from 100 DB requests to 80 DB requests when saving
an user email address.

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
(cherry picked from commit c6fd482edf33214a9ad4787e4cac278f871fa7c8)
2022-05-12 21:02:52 +02:00
..
Accounts Minor optimizations for saving user personal information 2022-05-12 21:02:52 +02:00
Activity Fix activity tests again 2020-08-18 18:21:03 +02:00
App Overwrite the channel 2022-03-10 16:16:30 +01:00
AppFramework Add a metadata service to store file metadata 2022-04-13 14:06:29 +02:00
Archive Avoid Deprecation warning from Zip tests on PHP 8.1 2021-12-16 09:58:40 +01:00
Authentication Automatically cut the token name on the first level 2022-03-23 21:38:53 +01:00
Avatar Check style update 2022-01-13 00:19:07 +01:00
BackgroundJob Get not only time-sensitive next job from list but any 2022-04-24 21:55:53 +03:00
Cache adjust tests to new fs setup 2022-03-04 16:29:59 +01:00
Calendar Move calendar resource/room backend registration to IBootstrap 2022-02-07 12:51:42 +01:00
Collaboration Merge pull request #31932 from nextcloud/feat/ignore_second_dn 2022-04-13 09:52:38 +02:00
Command Change PHPDoc type hint from PHPUnit_Framework_MockObject_MockObject to \PHPUnit\Framework\MockObject\MockObject 2020-08-12 13:55:19 +02:00
Comments Extract the EmojiService from user status and add an OCP interface 2022-04-28 07:09:44 -03:00
Contacts/ContactsMenu Add global profile toggle config 2022-03-18 02:55:12 +00:00
DB Add a metadata service to store file metadata 2022-04-13 14:06:29 +02:00
Diagnostics Fix tests 2022-02-28 11:24:41 +01:00
DirectEditing Get the parent directory before creating a file from a template 2021-04-01 13:48:21 +02:00
Encryption Migrate from ILogger to LoggerInterface where needed in the tests 2022-03-24 16:21:26 +01:00
EventDispatcher Migrate from ILogger to LoggerInterface where needed in the tests 2022-03-24 16:21:26 +01:00
Federation Allow to get a local cloud id without going through the contacts manager 2021-07-14 16:08:05 +02:00
Files Fix test 2022-04-20 13:08:31 +02:00
GlobalScale Change PHPDoc type hint from PHPUnit_Framework_MockObject_MockObject to \PHPUnit\Framework\MockObject\MockObject 2020-08-12 13:55:19 +02:00
Group Migrate from ILogger to LoggerInterface where needed in the tests 2022-03-24 16:21:26 +01:00
Hooks Remove unused private ForwardEmitter and LegacyEmitter 2020-10-28 22:23:39 +01:00
Http Migrate from ILogger to LoggerInterface where needed in the tests 2022-03-24 16:21:26 +01:00
IntegrityCheck Fix integrity checker tests 2021-10-13 18:10:37 +02:00
L10N Add a unit test for translation with trailing colon 2022-04-26 11:05:19 +02:00
Lock Cleanup lock related code 2022-05-12 15:09:58 +02:00
Lockdown Fix last tests 2021-12-02 10:39:49 +01:00
Log Change PHPDoc type hint from PHPUnit_Framework_MockObject_MockObject to \PHPUnit\Framework\MockObject\MockObject 2020-08-12 13:55:19 +02:00
Mail Migrate from ILogger to LoggerInterface where needed in the tests 2022-03-24 16:21:26 +01:00
Memcache Add a built-in profiler inside Nextcloud 2022-04-04 10:28:26 +02:00
Metadata Add a metadata service to store file metadata 2022-04-13 14:06:29 +02:00
Migration Change PHPDoc type hint from PHPUnit_Framework_MockObject_MockObject to \PHPUnit\Framework\MockObject\MockObject 2020-08-12 13:55:19 +02:00
Notification Fair use of push notifications 2021-10-23 00:54:50 +02:00
OCS Change PHPDoc type hint from PHPUnit_Framework_MockObject_MockObject to \PHPUnit\Framework\MockObject\MockObject 2020-08-12 13:55:19 +02:00
Preview Skip the test if Imagick is misconfigured 2020-12-09 09:07:20 +01:00
PublicNamespace Format control structures, classes, methods and function 2020-04-10 14:19:56 +02:00
Remote Use exactly one empty line after the namespace declaration 2020-04-09 11:48:10 +02:00
Repair Fix more ILogger related problems from tests 2022-03-24 16:21:27 +01:00
RichObjectStrings Format control structures, classes, methods and function 2020-04-10 14:19:56 +02:00
Route Migrate from ILogger to LoggerInterface where needed in the tests 2022-03-24 16:21:26 +01:00
Security Validate requested length is random string generator 2022-05-12 13:58:18 +02:00
Session Change PHPDoc type hint from PHPUnit_Framework_MockObject_MockObject to \PHPUnit\Framework\MockObject\MockObject 2020-08-12 13:55:19 +02:00
Settings Add admin privilege delegation for admin settings 2021-09-29 21:43:31 +02:00
Share Remove test for removed class SearchResultSorter 2022-04-28 14:56:26 +02:00
Share20 Merge pull request #31194 from nextcloud/feat/allow-to-exclude-groups-from-password-enforcement 2022-04-06 10:13:23 +02:00
Support Fair use of push notifications 2021-10-23 00:54:50 +02:00
SystemTag Format control structures, classes, methods and function 2020-04-10 14:19:56 +02:00
Talk Add a Talk API for OCP 2022-02-04 08:53:18 +01:00
Template Remove old legacy SvgController and IconsCacher 2022-05-10 23:24:07 +02:00
Traits Migrate from ILogger to LoggerInterface where needed in the tests 2022-03-24 16:21:26 +01:00
Updater Migrate from ILogger to LoggerInterface where needed in the tests 2022-03-24 16:21:26 +01:00
User Migrate from ILogger to LoggerInterface where needed in the tests 2022-03-24 16:21:26 +01:00
Util Format code to a single space around binary operators 2020-10-05 20:25:24 +02:00
AllConfigTest.php Cleanup AllConfig 2022-04-22 16:03:29 +02:00
APITest.php Format code to a single space around binary operators 2020-10-05 20:25:24 +02:00
AppConfigTest.php Bump doctrine/dbal from 2.12.0 to 3.0.0 2021-01-08 11:45:19 +01:00
AppScriptSortTest.php Sort app scripts topologically by its dependencies 2021-12-29 16:40:05 +01:00
AppTest.php Fix unit tests 2021-04-27 14:34:32 +02:00
AutoLoaderTest.php Remove trailing and in between spaces 2020-04-09 16:07:47 +02:00
CapabilitiesManagerTest.php Fix warnings about logException 2021-06-04 10:57:09 +02:00
ConfigTest.php Fix tests 2020-11-06 09:37:45 +01:00
ContactsManagerTest.php Format code to a single space around binary operators 2020-10-05 20:25:24 +02:00
DateTimeFormatterTest.php Check style update 2022-01-13 00:19:07 +01:00
EmojiHelperTest.php Include more emoji chars to test and fixes after include it 2022-04-29 14:00:57 -03:00
ErrorHandlerTest.php Cleaner removePassword regex 2021-03-27 18:42:58 +01:00
FileChunkingTest.php Format control structures, classes, methods and function 2020-04-10 14:19:56 +02:00
HelperStorageTest.php adjust tests to new fs setup 2022-03-04 16:29:59 +01:00
HookHelper.php Use the short array syntax, everywhere 2020-03-26 16:34:56 +01:00
ImageTest.php Prevent loading images that would require too much memory. 2022-01-11 11:44:38 +01:00
InfoXmlTest.php Format control structures, classes, methods and function 2020-04-10 14:19:56 +02:00
InitialStateServiceTest.php Fix ArrayAccess and JsonSerializable return types 2021-11-23 09:28:56 +01:00
InstallerTest.php Fix unit tests 2021-04-27 14:34:32 +02:00
LargeFileHelperGetFileSizeTest.php Make sure we can also run with escapedshell args 2020-12-07 15:44:04 +01:00
LargeFileHelperTest.php Mode to modern phpunit 2019-11-27 15:27:18 +01:00
LegacyHelperTest.php Rewrite LegacyHelperTest without $this->at() 2021-06-07 21:43:30 +02:00
LoggerTest.php Format code to a single space around binary operators 2020-10-05 20:25:24 +02:00
MemoryInfoTest.php Let memory limit set in tests fit the used amount 2021-07-22 17:05:29 +02:00
NaturalSortTest.php Format control structures, classes, methods and function 2020-04-10 14:19:56 +02:00
NavigationManagerTest.php Let apps toggle an unread counter on app icons 2021-06-16 17:12:56 +02:00
RepairStepTest.php log full expection during repair step 2021-03-18 08:45:17 +01:00
ServerTest.php Bump doctrine/dbal from 2.12.0 to 3.0.0 2021-01-08 11:45:19 +01:00
SetupTest.php Fix unit tests 2021-04-27 14:34:32 +02:00
SubAdminTest.php adjust tests to new fs setup 2022-03-04 16:29:59 +01:00
TagsTest.php Make sure getUsersFavoritingObject can be run without a user 2020-10-06 16:49:23 +02:00
TemplateFunctionsTest.php Format control structures, classes, methods and function 2020-04-10 14:19:56 +02:00
TempManagerTest.php Migrate from ILogger to LoggerInterface where needed in the tests 2022-03-24 16:21:26 +01:00
TestCase.php adjust tests to new fs setup 2022-03-04 16:29:59 +01:00
TestMoveableMountPoint.php Move tests/ to PSR-4 (#24731) 2016-05-20 15:38:20 +02:00
UpdaterTest.php Fix unit tests 2021-04-27 14:34:32 +02:00
UrlGeneratorTest.php Merge pull request #27733 from PhrozenByte/enhancement/noid/IURLGenerator-linkToDefaultPageUrl 2021-10-05 13:06:59 +02:00
UtilCheckServerTest.php Change PHPDoc type hint from PHPUnit_Framework_MockObject_MockObject to \PHPUnit\Framework\MockObject\MockObject 2020-08-12 13:55:19 +02:00
UtilTest.php Make sure common and main core scripts are loaded first 2022-03-04 10:22:56 +01:00