summaryrefslogtreecommitdiffstats
path: root/tests/lib/Avatar
Commit message (Collapse)AuthorAgeFilesLines
* Update avatars on updateCarl Schwan2022-09-092-5/+4
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Merge pull request #32981 from nextcloud/typing/carl/simplefsCarl Schwan2022-07-181-4/+7
|\ | | | | Add typing to SimpleFS
| * Add typing to SimpleFSCarl Schwan2022-07-141-8/+11
| | | | | | | | | | | | - Fix putContent sometimes return a bool and sometimes nothing Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* | Make Color class publicCarl Schwan2022-07-052-10/+11
| | | | | | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* | Cleanup avatar related codeCarl Schwan2022-06-222-8/+8
|/ | | | | | | | - Move event listener to new event handling - Add typing almost everywhere - Fix inconsistent interface parameter Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Test all scopesChristopher Ng2022-06-071-5/+8
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* Fix get avatar authorizationChristopher Ng2022-06-071-0/+20
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* Check style updateCarl Schwan2022-01-131-3/+3
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Enable Avatar tests as well for PHP>=8Côme Chilliet2021-10-281-20/+0
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Fix unit testsJoas Schilling2021-04-273-9/+9
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add known user check in avatar when v2-private scopeVincent Petry2021-03-261-22/+89
| | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Added PlaceholderAvatar with own cached imagesVincent Petry2021-03-261-4/+7
| | | | | | | | | | | When avatar scope is private, the PlaceholderAvatar is used to deliver a placeholder avatar based on the user's initials. This was implemented as a separate class for now to avoid messing with the existing UserAvatar implementation and its generated vs non-generated logic. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Add new v2-private account scopeVincent Petry2021-03-261-2/+59
| | | | | | | | | | Added new v2-private account manager scope that restricts the scope further by excluding public link access. Avatars with v2-private account scope are now showing the guest avatar instead of the real avatar. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* php cs fixRoeland Jago Douma2020-12-071-1/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Avatar fixesRoeland Jago Douma2020-12-071-2/+25
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Change PHPDoc type hint from PHPUnit_Framework_MockObject_MockObject to ↵Morris Jobke2020-08-122-11/+11
| | | | | | \PHPUnit\Framework\MockObject\MockObject Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-101-6/+3
| | | | | | | | | | | | | | | 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>
* Unify function spacing to PSR2 recommendationChristoph Wurst2020-04-091-3/+3
| | | | 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>
* Merge pull request #20172 from nextcloud/techdebt/phpunit-short-returnChristoph Wurst2020-03-261-17/+17
|\ | | | | Use the shorter phpunit syntax for mocked return values
| * Use the shorter phpunit syntax for mocked return valuesChristoph Wurst2020-03-251-17/+17
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Use lowercase true, false and null constantsChristoph Wurst2020-03-251-1/+1
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Change avatar placeholder from single letter to 2 lettersSergey Shliakhov2020-01-271-13/+45
| | | | | https://github.com/nextcloud/server/issues/18717 Signed-off-by: Sergey Shliakhov <husband.sergey@gmail.com>
* Mode to modern phpunitRoeland Jago Douma2019-11-272-6/+6
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Make phpunit8 compatibleRoeland Jago Douma2019-11-272-2/+2
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Some php-cs fixesRoeland Jago Douma2019-11-221-1/+1
| | | | | | | | | | | * 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>
* adjust test expectationsArthur Schiwon2019-09-041-2/+1
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Move font from Nunito to Noto SansJan-Christoph Borchardt2019-06-221-1/+1
| | | | Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
* Switch guest avatars to PNGMichael Weimann2019-02-071-1/+1
| | | | Signed-off-by: Michael Weimann <mail@michael-weimann.eu>
* Implement guest avatar endpointMichael Weimann2019-02-073-0/+474
Signed-off-by: Michael Weimann <mail@michael-weimann.eu>