aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/Files/Node/FileTest.php
Commit message (Collapse)AuthorAgeFilesLines
* chore: Add SPDX headerAndy Scherzinger2024-05-131-4/+3
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* perf: cache path by id to speedup getting nodes by idRobin Appelman2024-03-041-10/+15
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* tests: Adapt node related unit tests mocks to required root viewJulius Härtl2023-04-171-2/+2
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* dont needlessly resolve path when getting internalPath/storage from NodeRobin Appelman2022-04-041-2/+6
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* adjust tests to new fs setupRobin Appelman2022-03-041-10/+15
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Change PHPDoc type hint from PHPUnit_Framework_MockObject_MockObject to ↵Morris Jobke2020-08-121-10/+10
| | | | | | \PHPUnit\Framework\MockObject\MockObject Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-101-2/+0
| | | | | | | | | | | | | | | 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 the short array syntax, everywhereChristoph Wurst2020-03-261-10/+10
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use the shorter phpunit syntax for mocked return valuesChristoph Wurst2020-03-251-16/+16
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Mode to modern phpunitRoeland Jago Douma2019-11-271-15/+15
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fix files node API failed rename/copyVincent Petry2017-01-121-3/+0
| | | | | | | Whenever a rename or copy operation failed on the view, we must throw an exception instead of just ignoring. Signed-off-by: Vincent Petry <pvince81@owncloud.com>
* Refactor files node API for more code reuseVincent Petry2017-01-111-366/+17
| | | | Signed-off-by: Vincent Petry <pvince81@owncloud.com>
* DI for root.phpLukas Reschke2016-11-021-29/+71
| | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* optimize Folder::getById to use less queriesRobin Appelman2016-10-121-21/+27
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Improve FileTestRoeland Jago Douma2016-07-081-237/+153
| | | | | | * No longer requires DB * Fixed phpunit 5.4 warnings * Moved common stuff to Setup phase
* Move tests/ to PSR-4 (#24731)Joas Schilling2016-05-201-0/+680
* Move a-b to PSR-4 * Move c-d to PSR-4 * Move e+g to PSR-4 * Move h-l to PSR-4 * Move m-r to PSR-4 * Move s-u to PSR-4 * Move files/ to PSR-4 * Move remaining tests to PSR-4 * Remove Test\ from old autoloader