summaryrefslogtreecommitdiffstats
path: root/tests/lib/Template
Commit message (Collapse)AuthorAgeFilesLines
* Make sure to always load the latest icons-vars.css fileJulius Härtl2018-12-071-1/+6
| | | | 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>
* Test fixes 2John Molakvoæ (skjnldsv)2017-12-141-3/+3
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Test fixesJohn Molakvoæ (skjnldsv)2017-12-141-2/+2
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* tests: change helper scopeKyle Fazzari2017-11-082-46/+51
| | | | | | | | 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-072-0/+287
| | | | Signed-off-by: Kyle Fazzari <kyrofa@ubuntu.com>
* Properly handle if the deps file if for some reason emptyMorris Jobke2017-07-191-1/+24
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fix testsJulius Härtl2017-06-161-20/+31
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Implement scss variable injection by OC_DefaultsJulius Haertl2017-04-251-23/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Julius Haertl <jus@bitgrid.net> Add Scss variables to example theme and theming app Signed-off-by: Julius Haertl <jus@bitgrid.net> Use SCSSCacher to build theming css Signed-off-by: Julius Härtl <jus@bitgrid.net> Update theming.scss Signed-off-by: Julius Härtl <jus@bitgrid.net> Code cleanup Signed-off-by: Julius Härtl <jus@bitgrid.net> Fix tests Signed-off-by: Julius Härtl <jus@bitgrid.net> Inject SCSSCacher for easier testing Signed-off-by: Julius Härtl <jus@bitgrid.net> Fix typehint Signed-off-by: Lukas Reschke <lukas@statuscode.ch> Generate absolute URLs Signed-off-by: Lukas Reschke <lukas@statuscode.ch> Fix tests to always use absolute urls for theming images Signed-off-by: Julius Härtl <jus@bitgrid.net> MailheaderColor -> ColorPrimary Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Move OC_Defaults to OCP\DefaultsMorris Jobke2017-04-091-2/+0
| | | | | | | | | | | | | * 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 gzip files for SafariMorris Jobke2017-03-292-10/+10
| | | | | | | * Safari support gzip only if the filename does not end on .gz - so this renames them to .gzip Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fix testsRoeland Jago Douma2017-03-282-28/+116
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Don't run JSCombiner when not installedLukas Reschke2017-03-251-26/+200
| | | | | | When the instance is not installed don't run the JSCombiner as the appdata folder does not yet exist. Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* TestsRoeland Jago Douma2017-03-244-0/+274
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fix testsRoeland Jago Douma2017-03-221-31/+89
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Cache SCSS dependency file in memcacheRoeland Jago Douma2017-03-221-2/+4
| | | | | | | Since reading a file from disks can be costly. Lets store the dependency json also in memcache. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fix testsJulius Härtl2017-03-201-1/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Add tests for SCSSCacherJulius Härtl2017-03-201-30/+200
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Add tests for SCSSCacherJulius Haertl2017-03-201-0/+108
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* fix unit testsMorris Jobke2017-02-031-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fix getMock TemplateRoeland Jago Douma2016-09-071-1/+2
|
* Move tests/ to PSR-4 (#24731)Joas Schilling2016-05-201-0/+95
* 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