aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/Files/Node/NodeTest.php
Commit message (Collapse)AuthorAgeFilesLines
* fix: Remove OCP\Files\Storage interface deprecated since version 9Côme Chilliet2024-09-161-2/+2
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* refactor: Add void return type to PHPUnit test methodsChristoph Wurst2024-09-151-27/+27
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* 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-4/+15
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix: Pass parent to NonExistingFile instancesJulius Härtl2023-09-131-2/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* tests: Adapt node related unit tests mocks to required root viewJulius Härtl2023-04-171-0/+14
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* dont needlessly resolve path when getting internalPath/storage from NodeRobin Appelman2022-04-041-24/+12
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Migrate from ILogger to LoggerInterface where needed in the testsCôme Chilliet2022-03-241-3/+3
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* adjust tests to new fs setupRobin Appelman2022-03-041-4/+10
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Change PHPDoc type hint from PHPUnit_Framework_MockObject_MockObject to ↵Morris Jobke2020-08-121-22/+22
| | | | | | \PHPUnit\Framework\MockObject\MockObject Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Add visibility to all methods and position of static keywordChristoph Wurst2020-04-101-4/+4
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #20170 from nextcloud/techdebt/remove-unused-importsChristoph Wurst2020-03-271-3/+0
|\ | | | | Remove unused imports
| * Remove unused importsChristoph Wurst2020-03-251-3/+0
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Use the short array syntax, everywhereChristoph Wurst2020-03-261-16/+16
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Use the shorter phpunit syntax for mocked return valuesChristoph Wurst2020-03-251-58/+58
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Mode to modern phpunitRoeland Jago Douma2019-11-271-33/+33
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Make phpunit8 compatibleRoeland Jago Douma2019-11-271-1/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Some php-cs fixesRoeland Jago Douma2019-11-221-1/+1
| | | | | | | | | | | * Order the imports * No leading slash on imports * Empty line before namespace * One line per import * Empty after imports * Emmpty line at bottom of file Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Add dispatcher events to User and Group objectsJoas Schilling2019-03-011-8/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Use ::class in test mocks of dav appMorris Jobke2017-10-261-1/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use ::class in test mocksMorris Jobke2017-10-241-4/+8
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Add tests for move/copy hooks in Node APIVincent Petry2017-01-121-0/+81
| | | | Signed-off-by: Vincent Petry <pvince81@owncloud.com>
* Fix files node API failed rename/copyVincent Petry2017-01-121-1/+46
| | | | | | | 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-21/+331
| | | | Signed-off-by: Vincent Petry <pvince81@owncloud.com>
* DI for root.phpLukas Reschke2016-11-021-7/+17
| | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* optimize Folder::getById to use less queriesRobin Appelman2016-10-121-2/+7
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Improve NodeTestRoeland Jago Douma2016-07-111-123/+76
| | | | | | * Do not use DB * Fix phpunit-5.4 warnigns * Moved commong stuff to setup
* Move tests/ to PSR-4 (#24731)Joas Schilling2016-05-201-0/+366
* 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