summaryrefslogtreecommitdiffstats
path: root/tests/lib/DirectEditing
Commit message (Collapse)AuthorAgeFilesLines
* Fix dynamic property creations in test filesCôme Chilliet2022-08-011-0/+4
| | | | | | This fixes warnings in PHP 8.2 Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Get the parent directory before creating a file from a templateJulius Härtl2021-04-011-6/+16
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Do not expose direct editing if no master key is availableJulius Härtl2020-09-011-1/+7
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-101-8/+4
| | | | | | | | | | | | | | | 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>
* Fix (array) indent style to always use one tabChristoph Wurst2020-04-091-2/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Remove unused importsChristoph Wurst2020-03-251-1/+0
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* use `nodeExists` instead of catching exceptionsRobin Appelman2020-01-141-4/+8
| | | | | | makes the intent of the code more clear imo Signed-off-by: Robin Appelman <robin@icewind.nl>
* CHeck if file already exists during file creationJulius Härtl2020-01-131-0/+15
| | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net> Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Return empty template for default creatorsJulius Härtl2019-12-161-1/+9
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Adjust DirectEditing test to PHPUnit8Julius Härtl2019-11-281-1/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Add mimetype to creatorsJulius Härtl2019-11-271-0/+4
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Code style fixes and cleanupJulius Härtl2019-11-271-2/+18
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Direct editing token testsJulius Härtl2019-11-271-0/+152
Signed-off-by: Julius Härtl <jus@bitgrid.net>