diff options
author | Jan-Christoph Borchardt <hey@jancborchardt.net> | 2018-10-23 13:13:35 +0200 |
---|---|---|
committer | Jan-Christoph Borchardt <hey@jancborchardt.net> | 2018-10-23 13:13:35 +0200 |
commit | 354b72b9d39caaa33308276456c958dc2b2ced66 (patch) | |
tree | 6083ba42ac9f4cf831940af99263d87ee8213494 /tests | |
parent | 3259d427eecb5954232ce75cf655d1696783850f (diff) | |
download | nextcloud-server-354b72b9d39caaa33308276456c958dc2b2ced66.tar.gz nextcloud-server-354b72b9d39caaa33308276456c958dc2b2ced66.zip |
Use correct typeface for avatar generator
Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/AvatarTest.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/lib/AvatarTest.php b/tests/lib/AvatarTest.php index 759dd385564..2f88d2b1883 100644 --- a/tests/lib/AvatarTest.php +++ b/tests/lib/AvatarTest.php @@ -48,7 +48,7 @@ class AvatarTest extends \Test\TestCase { $this->createMock(ILogger::class), $this->config ); - + // abcdefghi is a convenient name that our algorithm convert to our nextcloud blue 0082c9 $this->user->method('getDisplayName')->willReturn('abcdefghi'); } @@ -231,11 +231,11 @@ class AvatarTest extends \Test\TestCase { public function testGenerateSvgAvatar() { $avatar = $this->invokePrivate($this->avatar, 'getAvatarVector', [64]); - + $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:600;font-size:278px;font-family:\'Open Sans\';text-anchor:middle;fill:#fff">A</text> + <text x="50%" y="350" style="font-weight:normal;font-size:278px;font-family:\'Nunito\';text-anchor:middle;fill:#fff">A</text> </svg>'; $this->assertEquals($avatar, $svg); } |