aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/TestCase.php
Commit message (Collapse)AuthorAgeFilesLines
* chore: Remove old travis related stuffFerdinand Thiessen2024-09-191-5/+0
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* chore: Cleanup and prepare some app tests for PHPUnit 10ci/noid/prepare-phpunit-10Joas Schilling2024-09-191-0/+24
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* chore(deps): Update nextcloud/coding-standard to v1.3.1provokateurin2024-09-191-1/+1
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* feat: implement distributing partitioned queries over multiple shardsRobin Appelman2024-08-281-0/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* style: update codestyle for coding-standard 1.2.3Daniel Kesselberg2024-08-251-3/+3
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Merge branch 'master' into refactor/OC-Server-getSecureRandomJohn Molakvoæ2024-05-301-34/+43
|\ | | | | Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
| * chore: Add SPDX headerAndy Scherzinger2024-05-131-18/+3
| | | | | | | | 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>
| * Refactor `OC\Server::getLockingProvider`Andrew Summers2024-03-151-2/+3
| | | | | | | | Signed-off-by: Andrew Summers <18727110+summersab@users.noreply.github.com>
| * feat(appconfig): Automatically store "sensitive" appconfigs encrypted in the ↵Joas Schilling2024-03-061-0/+2
| | | | | | | | | | | | database Signed-off-by: Joas Schilling <coding@schilljs.com>
| * feat(CI): Allow apps to test with PHPUnit10Joas Schilling2023-09-211-13/+34
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Refactor `OC\Server::getSecureRandom`Andrew Summers2023-08-291-1/+1
|/ | | | Signed-off-by: Andrew Summers <18727110+summersab@users.noreply.github.com>
* Fix setting static property in tests on PHP 8.3Côme Chilliet2023-08-141-1/+5
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Adapt tests to config value typingCôme Chilliet2023-04-051-1/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* adjust tests to new fs setupRobin Appelman2022-03-041-0/+23
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Make Testcase class compatible with phpunit-9.5Joas Schilling2021-03-291-3/+15
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Bump nextcloud/coding-standard from 0.3.0 to 0.5.0dependabot-preview[bot]2021-02-181-1/+1
| | | | | | | | | | Bumps [nextcloud/coding-standard](https://github.com/nextcloud/coding-standard) from 0.3.0 to 0.5.0. - [Release notes](https://github.com/nextcloud/coding-standard/releases) - [Changelog](https://github.com/nextcloud/coding-standard/blob/master/CHANGELOG.md) - [Commits](https://github.com/nextcloud/coding-standard/compare/v0.3.0...v0.5.0) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Rollback failed transactions in TestCase.php to not break followup testsChristoph Wurst2021-01-081-1/+6
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix filesystem testsRoeland Jago Douma2020-12-071-1/+5
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Overwrite also the new command bus name to execute them in sync in the testsMorris Jobke2020-10-121-0/+2
| | | | | | Followup to #23245 Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Change PHPDoc type hint from PHPUnit_Framework_MockObject_MockObject to ↵Morris Jobke2020-08-121-2/+2
| | | | | | \PHPUnit\Framework\MockObject\MockObject Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fix overwriteService() for appsJoas Schilling2020-07-281-4/+11
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* ensure mounts are scanned during testsRobin Appelman2020-07-091-1/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Add visibility to all methods and position of static keywordChristoph Wurst2020-04-101-9/+9
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add visibility to all properties and move static keywordChristoph Wurst2020-04-101-2/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-101-3/+2
| | | | | | | | | | | | | | | 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>
* Remove trailing and in between spacesChristoph Wurst2020-04-091-2/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Unify function spacing to PSR2 recommendationChristoph Wurst2020-04-091-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use the short array syntax, everywhereChristoph Wurst2020-03-261-4/+4
| | | | 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>
* Make phpunit8 compatibleRoeland Jago Douma2019-11-271-4/+4
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* whitelist audit.logArthur Schiwon2018-06-291-0/+1
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Require PHPUnit 6.5 or higherJoas Schilling2018-01-241-21/+3
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Cleanup OC_User and OCP\UserMorris Jobke2018-01-161-1/+1
| | | | | | * mainly removes deprecated methods and old static code Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use ::class in test mocksMorris Jobke2017-10-241-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* split async test bus for easier subclassingRobin Appelman2017-08-241-1/+3
|
* Move OC_Defaults to OCP\DefaultsMorris Jobke2017-04-091-4/+8
| | | | | | | | | | | | | * currently there are two ways to access default values: OCP\Defaults or OC_Defaults (which is extended by OCA\Theming\ThemingDefaults) * our code used a mixture of both of them, which made it hard to work on theme values * this extended the public interface with the missing methods and uses them everywhere to only rely on the public interface Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fix NODB tests etcRoeland Jago Douma2017-03-211-4/+4
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Revert "Add a magic wrapper to allow phpunit4 to run the code again "Roeland Jago Douma2017-03-201-2/+5
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fix reporting of risky testsThomas Müller2016-12-221-1/+3
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Add a magic wrapper from hell to allow phpunit4 to run the code againJoas Schilling2016-11-151-5/+2
| | | | | | | Remove this once phpunit 5 is the lowest supported version, by reverting: https://github.com/nextcloud/server/pull/2137 Signed-off-by: Joas Schilling <coding@schilljs.com>
* Introduce an event for first time login based on the last login time stampThomas Müller2016-11-141-0/+4
| | | | | | | | | | | | Use firstLogin event to trigger creation of default calendar and default address book Delay login of admin user after setup so that firstLogin event can properly be processed for the admin Fixing tests ... Skeleton files are not copied over -> only 3 cache entries are remaining Use updateLastLoginTimestamp to properly setup lastLogin value for a test user
* Make sure the database is not replaced while we make a backup of the serviceJoas Schilling2016-11-081-4/+4
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Restore all services when a tests failed/finished for better testcase isolationJoas Schilling2016-10-201-3/+26
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Generate coverage for quick DB testsLukas Reschke2016-10-051-2/+4
| | | | | | This adds the "QUICKDB" group which excludes some tests that abuse unit tests as integration tests as displayed in https://github.com/nextcloud/server/issues/1626 Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Make tests work with 4.8 at leastJoas Schilling2016-09-131-0/+18
|
* more efficient querying of numeric storage idsRobin Appelman2016-09-071-0/+2
|
* cache user foldersRobin Appelman2016-08-251-0/+1
|
* Changed name of default logfile from owncloud.log to nextcloud.log.Thomas Pulzer2016-07-041-1/+1
|
* Fix TestCase::invokePrivate to work with static classesVincent Petry2016-06-011-1/+6
|