summaryrefslogtreecommitdiffstats
path: root/tests/lib/UrlGeneratorTest.php
Commit message (Collapse)AuthorAgeFilesLines
* Properly inject IRouter into URLGenerator to properly encapsulate testsMorris Jobke2020-08-191-1/+24
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Only load routes of the app which is requestedMorris Jobke2020-08-191-1/+3
| | | | | | | * Add fallback to load all routes if needed * Move partial loaded routes test to proper place Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Change PHPDoc type hint from PHPUnit_Framework_MockObject_MockObject to ↵Morris Jobke2020-08-121-3/+3
| | | | | | \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-2/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* 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 exactly one empty line after the namespace declarationChristoph Wurst2020-04-091-0/+1
| | | | | | For PSR2 Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Mode to modern phpunitRoeland Jago Douma2019-11-271-2/+2
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Make phpunit8 compatibleRoeland Jago Douma2019-11-271-2/+2
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Allow empty strings in getAbsoluteURLJoas Schilling2018-11-201-0/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Update the URLGenerator test to current state of artJoas Schilling2018-11-201-32/+30
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add function to generate urls for OCS routesRoeland Jago Douma2018-10-091-0/+18
| | | | | | | | | | fixes #11617 The OCS routes are only absolute for now as they are often exposed to the outside anyway and are on a different endpoint than index.php in anyway. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fixed testsJohn Molakvoæ (skjnldsv)2017-12-301-2/+8
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Add tests and inject IRequestJulius Härtl2017-06-161-27/+50
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Fix urlgenerator testRoeland Jago Douma2016-11-031-1/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fix getMock UrlGeneratortestRoeland Jago Douma2016-09-131-10/+12
|
* Fix lib/Joas Schilling2016-05-191-0/+134