aboutsummaryrefslogtreecommitdiffstats
path: root/apps/workflowengine/tests
Commit message (Collapse)AuthorAgeFilesLines
* refactor(apps): Use constructor property promotion when possibleprovokateurin2024-10-212-4/+5
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* chore(apps): Apply new rector configuration to autouse classesCôme Chilliet2024-10-154-12/+16
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* test(workflowengine): Add Storage parameter strong typesprovokateurin2024-10-071-3/+3
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* test: Fix IStorage return typesprovokateurin2024-09-261-1/+1
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* chore: Apply rector configuration to apps folderCôme Chilliet2024-09-201-3/+3
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* chore: Cleanup and prepare some app tests for PHPUnit 10ci/noid/prepare-phpunit-10Joas Schilling2024-09-192-9/+14
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* refactor: Add void return type to PHPUnit test methodsChristoph Wurst2024-09-156-34/+34
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* style: update codestyle for coding-standard 1.2.3Daniel Kesselberg2024-08-251-1/+1
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* chore: Add SPDX headerAndy Scherzinger2024-05-316-125/+12
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* fix: Apply new coding standard to all filesCôme Chilliet2024-04-021-1/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* enh(IMountManager): Add method to get MountPoint from CachedMountInfoJonas2023-10-231-0/+2
| | | | Signed-off-by: Jonas <jonas@freesources.org>
* fix(isLegitimatedForUserId): Setup mountpoints to check file accessJonas2023-10-231-1/+2
| | | | | | | | | | | | | | | This fixes workflows on groupfolders, as it will consider access to files in groupfolders. It also fixes false positives where access to files was limited by other means not taken into account before, e.g. access control. For postDelete events, check for permissions of the parent folder instead, as the file itself no longer exists. Fixes: nextcloud/flow_notifications#71 Signed-off-by: Jonas <jonas@freesources.org>
* Migrate applications away from deprecated ILoggerCôme Chilliet2023-09-211-4/+3
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Merge pull request #38604 from ↵Côme Chilliet2023-08-071-2/+2
|\ | | | | | | | | fsamapoor/replace_strpos_calls_in_workflowengine_app Refactors "strpos" calls in /apps/workflowengine
| * Refactors "strpos" calls in /apps/workflowengine to improve code readability.Faraz Samapoor2023-07-031-2/+2
| | | | | | | | | | Signed-off-by: Faraz Samapoor <f.samapoor@gmail.com> Signed-off-by: Faraz Samapoor <fsa@adlas.at>
* | fix(dispatcher): Move remaining simple cases in apps/ folder to IEventDispatcherJoas Schilling2023-07-251-1/+0
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | fix(workflowengine): Remove legacy event (deprecated since 17)Joas Schilling2023-07-191-8/+4
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | fix: Avoid failing with duplicate checksJulius Härtl2023-07-121-3/+3
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | fix(workflowengine): Fix tested user agents of Android and iOS to match real ↵Joas Schilling2023-07-111-16/+16
|/ | | | | | ones Signed-off-by: Joas Schilling <coding@schilljs.com>
* Also check the scope when reading operations from the databaseJoas Schilling2023-02-231-0/+53
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Validate the scope when validating operationsJoas Schilling2023-02-231-5/+108
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* perf(workflowengine): Cache query that is performed on every requestJulius Härtl2023-02-101-2/+54
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* add some tests for mimetype checkRobin Appelman2022-12-201-0/+192
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-045-15/+33
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* inform the user when flow config data exceeds thresholdsArthur Schiwon2020-10-281-0/+159
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Change PHPDoc type hint from PHPUnit_Framework_MockObject_MockObject to ↵Morris Jobke2020-08-123-6/+6
| | | | | | \PHPUnit\Framework\MockObject\MockObject Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Flow File entity implements IContextPortationArthur Schiwon2020-08-051-1/+3
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-102-14/+14
| | | | | | | | | | | | | | | To continue this formatting madness, here's a tiny patch that adds unified formatting for control structures like if and loops as well as classes, their methods and anonymous functions. This basically forces the constructs to start on the same line. This is not exactly what PSR2 wants, but I think we can have a few exceptions with "our" style. The starting of braces on the same line is pracrically standard for our code. This also removes and empty lines from method/function bodies at the beginning and end. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use elseif instead of else ifChristoph Wurst2020-04-101-2/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Unify function spacing to PSR2 recommendationChristoph Wurst2020-04-093-4/+4
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use exactly one empty line after the namespace declarationChristoph Wurst2020-04-091-1/+0
| | | | | | For PSR2 Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use the shorter phpunit syntax for mocked return valuesChristoph Wurst2020-03-251-2/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add app config to disable user flowsJulius Härtl2020-03-211-1/+6
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Use the new Events in FlowRoeland Jago Douma2020-01-021-5/+10
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* adjust unit testArthur Schiwon2019-11-281-1/+5
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Mode to modern phpunitRoeland Jago Douma2019-11-271-1/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Make phpunit8 compatibleRoeland Jago Douma2019-11-274-5/+5
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* relax dependency on GenericEvent, instead stay compatible with old eventsArthur Schiwon2019-11-131-1/+6
| | | | | | * also fixes tagging events Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* fix manager testsArthur Schiwon2019-09-101-6/+8
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Fix test mockingJulius Härtl2019-09-101-1/+2
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* split events DB field into entity and events, adjust biz logicArthur Schiwon2019-09-091-18/+30
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* extend DB table, manager, controller with support for entity eventsArthur Schiwon2019-09-091-3/+4
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* add missing depArthur Schiwon2019-09-091-1/+6
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* scope aware workflow controller and managerArthur Schiwon2019-09-091-5/+244
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* introducing Entity interfaces and a File one as first implementationArthur Schiwon2019-09-091-4/+67
| | | | | | also adds admin settings that pass entities as initial state Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Make the Outlook and Thunderbird addons identifyableJoas Schilling2018-02-271-0/+117
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix risky tests without assertionsJoas Schilling2018-01-252-0/+3
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Use ::class in test mocksMorris Jobke2017-10-243-4/+8
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Do not reset the list after adding cached entriesJoas Schilling2016-10-171-0/+94
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Translate the errorsJoas Schilling2016-08-013-49/+80
|