summaryrefslogtreecommitdiffstats
path: root/tests/lib/Template
Commit message (Collapse)AuthorAgeFilesLines
* feat(template): Allow `JSResourceLocator` to find ES6 scriptsFerdinand Thiessen2023-02-221-12/+64
| | | | | | | | Enable module js (ES6) support on the `JSResourceLocator`. This changes `JSResourceLocator` to look for `.mjs` files first to allow applications to provide a fallback `.js` for older Nextcloud versions. Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
* composer run cs:fixCôme Chilliet2023-01-201-5/+5
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Drop 3rdparty root since it is unused and adjust testsJulius Härtl2022-12-072-17/+18
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Remove deprecated at matcher from tests/libCôme Chilliet2022-08-291-51/+65
| | | | | | Only 15 warnings left in there Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Remove SCSSCacherJohn Molakvoæ2022-05-132-537/+0
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Remove old legacy SvgController and IconsCacherJohn Molakvoæ2022-05-103-190/+0
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Fix more ILogger related problems from testsCôme Chilliet2022-03-241-4/+2
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Migrate from ILogger to LoggerInterface where needed in the testsCôme Chilliet2022-03-246-19/+19
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Bump scssphp/scssphp from 1.0.3 to 1.4.0Christoph Wurst2021-01-111-7/+14
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix tests to return config default valuesMorris Jobke2020-11-071-0/+5
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Clear cached app config while waiting for the SCSSCache to finish processing ↵Morris Jobke2020-10-162-2/+13
| | | | | | the file Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Format code to a single space around binary operatorsChristoph Wurst2020-10-053-6/+6
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Change PHPDoc type hint from PHPUnit_Framework_MockObject_MockObject to ↵Morris Jobke2020-08-126-37/+37
| | | | | | \PHPUnit\Framework\MockObject\MockObject Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Remove deprecated test of internal attributes via assertAttributeEquals in ↵Morris Jobke2020-07-233-32/+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-104-9/+4
| | | | | | | | | | | | | | | 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 elseif instead of else ifChristoph Wurst2020-04-102-25/+25
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Unify function spacing to PSR2 recommendationChristoph Wurst2020-04-092-14/+14
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use a blank line after the opening tagChristoph Wurst2020-04-091-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix (array) indent style to always use one tabChristoph Wurst2020-04-092-10/+10
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #20170 from nextcloud/techdebt/remove-unused-importsChristoph Wurst2020-03-273-8/+0
|\ | | | | Remove unused imports
| * Remove unused importsChristoph Wurst2020-03-253-8/+0
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Use the short array syntax, everywhereChristoph Wurst2020-03-265-30/+30
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Use the shorter phpunit syntax for mocked return valuesChristoph Wurst2020-03-252-32/+32
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Make phpunit8 compatibleRoeland Jago Douma2019-11-276-6/+6
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Some php-cs fixesRoeland Jago Douma2019-11-225-11/+12
| | | | | | | | | | | * 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>
* Lock SCSS so we only run 1 job at a timeRoeland Jago Douma2019-07-121-2/+2
| | | | | | | | | This is bit hacky but a start to lock the SCSS compiler properly Retry during 10s then give up Properly get error message Do not clear locks and properly debug scss caching Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* more caching for themingRobin Appelman2018-12-071-1/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Make sure to always load the latest icons-vars.css fileJulius Härtl2018-11-121-1/+6
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Fix testsJulius Härtl2018-10-291-2/+2
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Keep list of icons in a separate file for use in the accessibility appJulius Härtl2018-10-251-7/+7
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Append cache bump parameter to scss files URLJulius Härtl2018-08-011-1/+2
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Fix testsJulius Härtl2018-07-261-1/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Fix unit tests to pass the folder now via the appData dependencyMorris Jobke2018-07-251-2/+8
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* cache isCached state for scss resourcesRobin Appelman2018-07-242-2/+12
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* new testsJohn Molakvoæ (skjnldsv)2018-07-241-2/+27
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Fix unit testsRoeland Jago Douma2018-07-191-6/+5
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Php code bumpJohn Molakvoæ (skjnldsv)2018-07-191-0/+1
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Fixed testsJohn Molakvoæ (skjnldsv)2018-07-193-2/+171
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Fix testsRoeland Jago Douma2018-05-142-2/+4
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Use app version to generate scss filenameJohn Molakvoæ (skjnldsv)2018-03-281-12/+23
| | | | | | Fixed scsscacher tests Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Fix tests to use ICacheFactoryJulius Härtl2018-03-074-14/+37
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Fix testsRoeland Jago Douma2018-03-071-0/+17
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fix testsRoeland Jago Douma2018-02-031-0/+4
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Move depsCache clearing to SCSSCacher/JSCombinerJulius Härtl2018-02-032-0/+42
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Add tests for URL rewritingJulius Härtl2018-01-261-4/+14
| | | | 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>
* Fixed testsJohn Molakvoæ (skjnldsv)2017-12-301-11/+13
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Correctly remove temp test directory treeJohn Molakvoæ (skjnldsv)2017-12-301-1/+13
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Added tests for various installations typesJohn Molakvoæ (skjnldsv)2017-12-301-0/+37
| | | | | | | | | | | | | - With root installation - Core css - App inside server root - Secondary apps directory outside server root - With an installation in a sub directory - Core css - App inside server root - Secondary apps directory outside server root Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Fixed webroot for scss filesJohn Molakvoæ (skjnldsv)2017-12-301-11/+2
| | | | | | Fixed tests Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>