diff options
author | Carl Schwan <carl@carlschwan.eu> | 2022-08-31 14:24:25 +0200 |
---|---|---|
committer | Carl Schwan <carl@carlschwan.eu> | 2022-09-09 14:23:41 +0200 |
commit | bc9a48804688e06a842169be0ed3efbf2fead559 (patch) | |
tree | 81241be20f6da44e83dae52221ddb7ae914fed0e /tests/lib/Avatar/UserAvatarTest.php | |
parent | f3ec1d3a9f6806aee32b27942e56931f79d9d02c (diff) | |
download | nextcloud-server-bc9a48804688e06a842169be0ed3efbf2fead559.tar.gz nextcloud-server-bc9a48804688e06a842169be0ed3efbf2fead559.zip |
Update avatars on update
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Diffstat (limited to 'tests/lib/Avatar/UserAvatarTest.php')
-rw-r--r-- | tests/lib/Avatar/UserAvatarTest.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/lib/Avatar/UserAvatarTest.php b/tests/lib/Avatar/UserAvatarTest.php index 9a81f0bcd35..a5cd08cc65d 100644 --- a/tests/lib/Avatar/UserAvatarTest.php +++ b/tests/lib/Avatar/UserAvatarTest.php @@ -233,12 +233,12 @@ class UserAvatarTest extends \Test\TestCase { } public function testGenerateSvgAvatar() { - $avatar = $this->invokePrivate($this->avatar, 'getAvatarVector', [64]); + $avatar = $this->invokePrivate($this->avatar, 'getAvatarVector', [64, false]); $svg = '<?xml version="1.0" encoding="UTF-8" standalone="no"?> <svg width="64" height="64" version="1.1" viewBox="0 0 500 500" xmlns="http://www.w3.org/2000/svg"> - <rect width="100%" height="100%" fill="#0082c9"></rect> - <text x="50%" y="350" style="font-weight:normal;font-size:280px;font-family:\'Noto Sans\';text-anchor:middle;fill:#fff">A</text> + <rect width="100%" height="100%" fill="#e5f2f9"></rect> + <text x="50%" y="350" style="font-weight:normal;font-size:280px;font-family:\'Noto Sans\';text-anchor:middle;fill:#0082c9">A</text> </svg>'; $this->assertEquals($avatar, $svg); } |