nextcloud/tests/lib
Christoph Wurst 20fcfb5739
feat(app framework)!: Inject services into controller methods
Usually Nextcloud DI goes through constructor injection. This has the
implication that each instance of a class builds the full DI tree. That
is the injected services, their services, etc. Occasionally there is a
service that is only needed for one controller method. Then the DI tree
is build regardless if used or not.

If services are injected into the method, we only build the DI tree if
that method gets executed.

This is also how Laravel allows injection.

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2023-01-18 14:00:38 +01:00
..
Accounts Fix tests 2022-11-22 10:06:19 +01:00
Activity Fix activity tests again 2020-08-18 18:21:03 +02:00
App set theming app to alwaysEnabled 2022-10-17 17:51:39 +02:00
AppFramework feat(app framework)!: Inject services into controller methods 2023-01-18 14:00:38 +01:00
Archive Avoid Deprecation warning from Zip tests on PHP 8.1 2021-12-16 09:58:40 +01:00
Authentication PublickKeyTokenProvider: Fix password update routine with password hash 2023-01-04 08:30:53 +01:00
Avatar Update avatars on update 2022-09-09 14:23:41 +02:00
BackgroundJob Fix API breakage by using a new method instead 2023-01-12 17:18:59 +01:00
Cache Move CappedMemoryCache to OCP 2022-07-14 15:54:31 +02:00
Calendar Fix errors in calendar tests saying function handleIMipMessage does not exists on ICreateFromString 2022-12-06 13:52:13 +01:00
Collaboration adjusts tests for CloudIdManager 2022-08-31 15:47:00 +02:00
Command Merge pull request #32868 from nextcloud/fix/replace-opis-closure-by-laravel-fork 2022-06-21 12:21:32 +02:00
Comments Delete comments that expired now 2022-07-25 11:30:20 -03:00
Contacts/ContactsMenu Fix unit tests of the ActionProviderStore 2023-01-04 16:17:43 +01:00
DB Fix dynamic properties and other problems in tests for PHP 8.2 2022-11-14 16:14:35 +01:00
Diagnostics Fix tests 2022-02-28 11:24:41 +01:00
DirectEditing Fix dynamic property creations in test files 2022-08-01 15:07:53 +02:00
Encryption Fix codestyle in modified files 2022-12-05 16:08:40 +01:00
EventDispatcher Migrate from ILogger to LoggerInterface where needed in the tests 2022-03-24 16:21:26 +01:00
Federation adjusts tests for CloudIdManager 2022-08-31 15:47:00 +02:00
Files Also update the unencrypted size of files when creating them with empty content 2022-12-07 19:12:06 +01: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 Add group display name cache 2022-11-28 11:52:55 +00:00
Hooks Remove unused private ForwardEmitter and LegacyEmitter 2020-10-28 22:23:39 +01:00
Http Add remote host validation API 2022-10-31 16:13:28 +01:00
IntegrityCheck Remove some more at matchers in tests/lib 2022-06-20 10:53:06 +02:00
L10N Cache available languages locally 2022-12-07 22:32:06 +01: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 add unit test for ExceptionSerializer 2022-07-29 12:07:41 +02:00
Mail refactor AutoSubmittedValue to Headers\AutoSubmitted and adding 2023-01-03 15:15:35 +01:00
Memcache Add a built-in profiler inside Nextcloud 2022-04-04 10:28:26 +02:00
Metadata Fix dynamic property creations in test files 2022-08-01 15:07:53 +02:00
Migration Fix BackgroundRepairTest 2022-08-25 16:15:48 +02:00
Net Add remote host validation API 2022-10-31 16:13:28 +01:00
Notification Increase the fair-use push limit to 1.000 users 2022-11-18 15:39:23 +01:00
OCS Remove deprecated at matcher from tests/lib 2022-08-29 16:36:40 +02:00
Preview Adapt tests to new job constructors 2022-12-05 10:41:13 +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 Move avatar clearing in the background 2022-09-26 15:26:31 +00:00
RichObjectStrings Format control structures, classes, methods and function 2020-04-10 14:19:56 +02:00
Route Remove unused legacy ajax/list.php in files app 2023-01-09 15:18:37 +01:00
Security Fix syntax in VerificationTokenTest.php 2022-11-15 09:25:56 +01: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 Fix dynamic properties and other problems in tests for PHP 8.2 2022-11-14 16:14:35 +01:00
Share Cleanup tags and Share component 2022-09-29 15:15:28 +00:00
Share20 Merge pull request #34477 from nextcloud/bugfix/noid/sharee-recommendations-show-group-id 2022-12-09 22:39:28 +01: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 Drop 3rdparty root since it is unused and adjust tests 2022-12-07 23:55:32 +01:00
Traits Migrate from ILogger to LoggerInterface where needed in the tests 2022-03-24 16:21:26 +01:00
Updater Remove deprecated at matcher in Updater/VersionCheckTest.php 2022-08-29 15:11:18 +02:00
User spaces are allowed in userids 2023-01-10 13:25:27 +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 set theming app to alwaysEnabled 2022-10-17 17:51:39 +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 Fix ContactsManagerTest test 2022-09-30 13:20:04 +00: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 Refactor the ErrorHandler into a dynamic class 2022-11-02 09:49:37 +01:00
FileChunkingTest.php Format control structures, classes, methods and function 2020-04-10 14:19:56 +02:00
HelperStorageTest.php store unencrypted size in the unencrypted_size column 2022-08-16 13:54:26 +02:00
HookHelper.php Use the short array syntax, everywhere 2020-03-26 16:34:56 +01:00
ImageTest.php increase preview_max_memory and make it easier to debug 2022-12-22 09:52:46 +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 Remove some more at matchers in tests/lib 2022-06-20 10:53:06 +02:00
LargeFileHelperGetFileSizeTest.php Move findBinaryFinder and isFunctionEnabled away from OC_Helper 2022-08-23 19:44:04 +02: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 Fix logging data context to file 2022-05-02 19:29:35 +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 Add accessibility entry in user menu 2022-09-14 15:05:35 +02:00
RepairTest.php Fix RepairTest 2022-08-25 16:15:48 +02:00
ServerTest.php Inform ServerTest that TagMapper now uses QBMapper 2022-09-19 10:01:49 +00: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 Cleanup tags and Share component 2022-09-29 15:15:28 +00: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 Remove unused legacy ajax/list.php in files app 2023-01-09 15:18:37 +01: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