aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/Template/CSSResourceLocatorTest.php
Commit message (Collapse)AuthorAgeFilesLines
* refactor: Add void return type to PHPUnit test methodsChristoph Wurst2024-09-151-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* chore: Add SPDX headerAndy Scherzinger2024-05-131-19/+2
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* Remove SCSSCacherJohn Molakvoæ2022-05-131-13/+0
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Remove old legacy SvgController and IconsCacherJohn Molakvoæ2022-05-101-5/+0
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* 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>
* Clear cached app config while waiting for the SCSSCache to finish processing ↵Morris Jobke2020-10-161-1/+6
| | | | | | the file Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Format code to a single space around binary operatorsChristoph Wurst2020-10-051-2/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Change PHPDoc type hint from PHPUnit_Framework_MockObject_MockObject to ↵Morris Jobke2020-08-121-9/+9
| | | | | | \PHPUnit\Framework\MockObject\MockObject Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Remove deprecated test of internal attributes via assertAttributeEquals in ↵Morris Jobke2020-07-231-10/+0
| | | | | | | | | | | | constructor tests I removed the tests completely because they just test that the constructor assigns the values to the internal properties. Nothing that should be cared about from the outside. See https://github.com/sebastianbergmann/phpunit/issues/3339#issuecomment-428843322 It is seen as bad practice to test internal stuff of objects instead of the actual input and output of mathod calls. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-101-2/+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>
* Fix (array) indent style to always use one tabChristoph Wurst2020-04-091-6/+6
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use the short array syntax, everywhereChristoph Wurst2020-03-261-6/+6
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* 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-5/+5
| | | | | | | | | | | * 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>
* cache isCached state for scss resourcesRobin Appelman2018-07-241-1/+6
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Fixed testsJohn Molakvoæ (skjnldsv)2018-07-191-1/+6
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Fix testsRoeland Jago Douma2018-05-141-1/+2
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fix tests to use ICacheFactoryJulius Härtl2018-03-071-5/+5
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Fix "Undefined method setExpectedException()"Joas Schilling2018-01-241-1/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* tests: change helper scopeKyle Fazzari2017-11-081-23/+25
| | | | | | | | This seems to be the only way to have the same helpers used between tests in a manner that works for both standalone phpunit and autotest.sh. Signed-off-by: Kyle Fazzari <kyrofa@ubuntu.com>
* JSResourceLocator: account for symlinks in app pathKyle Fazzari2017-11-071-0/+148
Signed-off-by: Kyle Fazzari <kyrofa@ubuntu.com>