Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/mail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAnna Larch <anna@nextcloud.com>2021-04-15 16:44:48 +0300
committerRichard Steinmetz <richard@steinmetz.cloud>2022-02-15 12:44:30 +0300
commit1c92f86ea47a7a2bc964911c8a3ea3af8ca3b35c (patch)
tree7b72eae3cfa12d9520793fee85b6dbab6451f0cb /tests
parent8ea49e0d13530feec2f8e5976d28bedf9b612516 (diff)
Revert "Remove Jans test (for now)"
Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
Diffstat (limited to 'tests')
-rw-r--r--tests/Integration/Service/AvatarServiceIntegrationTest.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/Integration/Service/AvatarServiceIntegrationTest.php b/tests/Integration/Service/AvatarServiceIntegrationTest.php
index ee8fe4b58..a143e592e 100644
--- a/tests/Integration/Service/AvatarServiceIntegrationTest.php
+++ b/tests/Integration/Service/AvatarServiceIntegrationTest.php
@@ -53,6 +53,14 @@ class AvatarServiceIntegrationTest extends TestCase {
$this->service = OC::$server->query(IAvatarService::class);
}
+ public function testJansGravatar() {
+ $avatar = $this->service->getAvatar('hey@jancborchardt.net', 'john');
+ $this->assertNotNull($avatar);
+ $this->assertEquals('https://secure.gravatar.com/avatar/2fd3f4d5d762955e5b603794a888fa97?size=128&d=404', $avatar->getUrl());
+ $image = $this->service->getAvatarImage('hey@jancborchardt.net', 'john');
+ $this->assertNotNull($image);
+ }
+
public function testChristophsFavicon() {
$avatar = $this->service->getAvatar('christoph@winzerhof-wurst.at', 'jan');
$this->assertNull($avatar); // There is none