aboutsummaryrefslogtreecommitdiffstats
path: root/apps/theming/tests/Controller/IconControllerTest.php
Commit message (Collapse)AuthorAgeFilesLines
* chore: run rectorrector-phpunit10Robin Appelman2025-07-011-6/+6
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* test: Migrate theming and sharebymail to PHPUnit10tests/noid/more-phpunit10-appsJoas Schilling2025-05-201-19/+11
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* refactor(apps): Use constructor property promotion when possibleprovokateurin2024-10-211-1/+1
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* refactor: Add void return type to PHPUnit test methodsChristoph Wurst2024-09-151-5/+5
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* chore: Add SPDX headerAndy Scherzinger2024-05-311-24/+2
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* fix(manifest): Check if app exists instead of accessing null as an arrayJoas Schilling2024-01-171-1/+6
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Improve caching policyCarl Schwan2022-02-161-1/+1
| | | | | | | | | | | | | | * Cache css with version in url. This makes most js and css requests to be cached by the browser * Force caching previews, the etag is in the url so that if the propfind gives a new etag, we will refresh it otherwise it's no use to try to fetch the new etag and do tons of DB queries Tested with firefox and 'debug' => false (important so that the js/css urls are generated with ?v= parameter) Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Fix tests on PHP 8.1 for encryption, files_sharing, files_version,Côme Chilliet2021-12-161-0/+2
| | | | | | files_trashbin and theming apps Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-041-2/+1
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Update the license headers for Nextcloud 20Christoph Wurst2020-08-241-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Change PHPDoc type hint from PHPUnit_Framework_MockObject_MockObject to ↵Morris Jobke2020-08-121-6/+6
| | | | | | \PHPUnit\Framework\MockObject\MockObject Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-101-1/+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-1/+0
| | | | | | For PSR2 Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Remove unused importsChristoph Wurst2020-03-251-1/+0
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headersChristoph Wurst2019-12-051-2/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Mode to modern phpunitRoeland Jago Douma2019-11-271-1/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* 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>
* Disables SVG favicon uploads when imagemagick is missing.Michael Weimann2018-09-051-2/+2
| | | | Signed-off-by: Michael Weimann <mail@michael-weimann.eu>
* Merge pull request #9258 from nextcloud/theming-logo-pngMorris Jobke2018-06-151-5/+8
|\ | | | | Convert theming app logo to PNG to show it properly in emails
| * Minor fixes and cleanupJulius Härtl2018-06-061-5/+8
| | | | | | | | 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>
* Fix usageRoeland Jago Douma2018-06-041-25/+0
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fix theming testsJulius Härtl2018-04-191-22/+22
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Update license headersMorris Jobke2017-11-061-10/+13
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use ::class in test mocksMorris Jobke2017-10-241-2/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Inject FileAccessHelper for proper testingJulius Härtl2017-05-181-1/+14
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Add proper Content-Type to iconsJulius Härtl2017-05-171-2/+2
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Fallback to default faviconJulius Härtl2017-05-171-6/+19
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Fix theming testsJoas Schilling2017-04-201-6/+6
| | | | | | | Trying to configure method "shouldReplaceIcons" which cannot be configured because it does not exist, has not been specified, is final, or is static Signed-off-by: Joas Schilling <coding@schilljs.com>
* Move OC_Defaults to OCP\DefaultsMorris Jobke2017-04-091-3/+3
| | | | | | | | | | | | | * 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>
* Error handling and tests if file was not foundJulius Haertl2016-11-181-6/+3
| | | | Signed-off-by: Julius Haertl <jus@bitgrid.net>
* Sanitize input and small fixesJulius Haertl2016-11-181-6/+5
| | | | Signed-off-by: Julius Haertl <jus@bitgrid.net>
* Replace null return with NotFoundExceptionJulius Haertl2016-11-181-0/+7
| | | | Signed-off-by: Julius Haertl <jus@bitgrid.net>
* Improve cachingJulius Haertl2016-11-181-9/+16
| | | | Signed-off-by: Julius Haertl <jus@bitgrid.net>
* Caching for icon files using AppDataJulius Haertl2016-11-181-66/+67
| | | | Signed-off-by: Julius Haertl <jus@bitgrid.net>
* Theming: Code cleanup and cache buster for mime iconsJulius Haertl2016-11-181-22/+5
| | | | Signed-off-by: Julius Haertl <jus@bitgrid.net>
* Check if dynamic icons can be usedJulius Haertl2016-11-181-17/+76
| | | | Signed-off-by: Julius Haertl <jus@bitgrid.net>
* Add IconBuilder class to encapsulate icon generationJulius Haertl2016-11-181-43/+1
| | | | Signed-off-by: Julius Haertl <jus@bitgrid.net>
* Improve unit tests for image generationJulius Haertl2016-11-181-69/+58
| | | | Signed-off-by: Julius Haertl <jus@bitgrid.net>
* Theming: Add IconController testsJulius Haertl2016-11-181-0/+201
Signed-off-by: Julius Haertl <jus@bitgrid.net>