aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/DB/ConnectionTest.php
Commit message (Collapse)AuthorAgeFilesLines
* fix(db): Prevent two connections for single node databasesChristoph Wurst2024-05-281-0/+101
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Cleanup unneeded code around database.xmlMorris Jobke2021-03-241-375/+0
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Bump doctrine/dbal from 2.12.0 to 3.0.0Christoph Wurst2021-01-081-8/+6
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix unique key in test tableJoas Schilling2020-11-101-4/+8
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Skip the insertIfNotExists() tests on Oracle because it doesn't work with clobJoas Schilling2020-11-101-0/+20
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Easier debugging and spell fixJoas Schilling2020-11-101-6/+9
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Don't leave cursors open when tests failJoas Schilling2020-11-091-2/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* 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>
* Mode to modern phpunitRoeland Jago Douma2019-11-271-8/+8
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Make phpunit8 compatibleRoeland Jago Douma2019-11-271-4/+4
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Exception is not thrown anymoreMorris Jobke2018-11-121-2/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Add test that unique constraint is workingDaniel Kesselberg2018-11-061-0/+13
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Use insertIfNotExist of the new interfaceMorris Jobke2018-03-121-0/+138
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fix risky tests without assertionsJoas Schilling2018-01-251-2/+4
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fixed failing test which was ignoring a required (not null) column (#26303)Philipp Schaffrath2017-03-171-2/+1
| | | | | | | | | | | | | | | | | | | | | | | * Fixed failing test which was ignoring a required (not null) column * restored test to original, catching DriverException which also catches ConstraintViolationException * catch ConstraintViolationException again * removed unnecessary field from this test * clobfield should be nullable * clobfield now is nullable * removed autoincrement since whenever this strategy is enabled, oracle would not throw constraint violation exceptions (needed for setValues), which mysql still does * this field does not auto increment anymore * mark integerfield as primary, since it is not getting marked as such through auto increment anymore, integerfield default always has been 0 instead of null Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Move tests/ to PSR-4 (#24731)Joas Schilling2016-05-201-0/+200
* 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