summaryrefslogtreecommitdiffstats
path: root/apps/theming/tests
Commit message (Collapse)AuthorAgeFilesLines
* Fixed theming testsJohn Molakvoæ (skjnldsv)2018-06-201-15/+15
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Theming update on urlJohn Molakvoæ (skjnldsv)2018-06-201-2/+2
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Merge pull request #9258 from nextcloud/theming-logo-pngMorris Jobke2018-06-155-28/+81
|\ | | | | Convert theming app logo to PNG to show it properly in emails
| * Add info message if an exception occurs during the svg to png conversionJulius Härtl2018-06-141-1/+6
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
| * Minor fixes and cleanupJulius Härtl2018-06-064-19/+25
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
| * Use svg opt out as parameterJulius Härtl2018-06-052-4/+4
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
| * Adjust ImageManager tests for png generationJulius Härtl2018-06-051-7/+48
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
| * Generate PNG version of the theming app logo for mailsJulius Härtl2018-06-051-0/+1
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Fix possible test timing issues in IconControllerRoeland Jago Douma2018-06-131-2/+4
| | | | | | | | | | | | | | Since the response now handles the caching. We need to provide a default ITimeFactory mock. Else you might have failing tests. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Mock the timefactory in the theming testsRoeland Jago Douma2018-06-071-5/+7
|/ | | | | | | Now that the cache logic is moved to the theming controller we must properly overwrite this service. Else it could do :boom: in tests. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fix usageRoeland Jago Douma2018-06-042-51/+0
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* addjust footer height when legal links are present. fixes #9572Arthur Schiwon2018-05-241-1/+2
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* also add a privacy linkArthur Schiwon2018-05-243-11/+100
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Merge pull request #9437 from nextcloud/feature/noid/imprintRoeland Jago Douma2018-05-173-2/+81
|\ | | | | allow to specify a link to a legal notice
| * fix testsArthur Schiwon2018-05-112-0/+12
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
| * allow to specify a link to a legal noticeArthur Schiwon2018-05-091-2/+69
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | Add Content-Disposition headerJulius Härtl2018-05-171-1/+3
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Properly check mime type of the uploaded fileJulius Härtl2018-05-171-6/+7
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Fix testsRoeland Jago Douma2018-05-141-5/+11
|/ | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Add more tests for ImageManagerJulius Härtl2018-04-191-0/+91
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Fix theming testsJulius Härtl2018-04-195-245/+171
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Merge pull request #8993 from nextcloud/theming-allow-ui-with-themeRoeland Jago Douma2018-03-271-3/+3
|\ | | | | Show UI when using a custom theme
| * Show UI when using a custom themeJulius Härtl2018-03-261-3/+3
| | | | | | | | | | | | Do not hide the theming app UI when using a custom theme besides it, but warn the users about some settings being overwritten by that. Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Fix testsJulius Härtl2018-03-261-1/+1
|/ | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Update ThemingControllerTest.phprakekniven2018-03-191-2/+2
| | | Adjusted test
* Update ThemingControllerTest.phprakekniven2018-03-101-1/+1
| | | Fixed tests for https://github.com/nextcloud/server/pull/8633
* Fix tests to use ICacheFactoryJulius Härtl2018-03-071-1/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Add mock to setupKyle Fazzari2018-02-241-16/+4
| | | | Signed-off-by: Kyle Fazzari <kyrofa@ubuntu.com>
* theming: handle not being in the serverrootKyle Fazzari2018-02-201-0/+34
| | | | | | | | | | | | | | Currently, the theming app assumes it's in the serverroot. However, with Nextcloud's flexibility regarding configurable app paths, this is not a safe assumption to make. If it happens to be an incorrect assumption, the theming app fails to work. Instead of relying on the serverroot, just use the path from the AppManager and utilize relative paths for assets from there. Fix #8462 Signed-off-by: Kyle Fazzari <kyrofa@ubuntu.com>
* Fix theming testRoeland Jago Douma2018-02-021-6/+6
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Merge pull request #8078 from nextcloud/theming-validate-scssMorris Jobke2018-01-291-8/+2
|\ | | | | SCSS hardening
| * Fix theming testsJulius Härtl2018-01-261-8/+2
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Remove theming migrationJulius Härtl2018-01-261-139/+0
|/ | | | | | Those images are alredy migrated after the instance has been updated to NC12 Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Fix "Undefined method setExpectedException()"Joas Schilling2018-01-241-9/+4
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* More detailed theming capabilitiesJulius Härtl2018-01-103-41/+82
| | | | | | This will allow clients to easily check if a custom background is used Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Add colors to testsJulius Härtl2018-01-081-7/+13
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Fix testsRoeland Jago Douma2017-12-181-1/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fix email buttons for white themeMorris Jobke2017-12-111-6/+10
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Theming: Fix tests for favicon containing multiple sizesJulius Härtl2017-11-131-3/+15
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Theming: Generate favicon sizes to avoid resizing issues done by the browserJulius Härtl2017-11-131-0/+3
| | | | | | fixes #5193 Signed-off-by: Julius Haertl <jus@bitgrid.net>
* Merge pull request #7112 from nextcloud/theming-imagemagick-hintMorris Jobke2017-11-091-0/+4
|\ | | | | Theming: add hint about favicon generation
| * Fix unit testsMorris Jobke2017-11-091-0/+4
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Merge pull request #6788 from staabm/masterLukas Reschke2017-11-081-2/+2
|\ \ | |/ |/| Prevent XSS in links which open a new browser window
| * Prevent XSS in links which open a new browser windowMarkus Staab2017-10-191-2/+2
| |
* | Theming: expose element color though capabilities APIJulius Härtl2017-11-071-0/+3
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Update license headersMorris Jobke2017-11-0611-43/+75
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Use ::class in test mocksMorris Jobke2017-10-244-7/+7
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Theming: Add tests for mimetype and upload error checksJulius Härtl2017-10-031-4/+158
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Theming: Handle errors on uploaded files properlyJulius Härtl2017-10-031-16/+25
|/ | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Fix testsJulius Härtl2017-09-121-6/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>