Revert "Remove Jans test (for now)"

Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
This commit is contained in:
Anna Larch 2021-04-15 15:44:48 +02:00 коммит произвёл Richard Steinmetz
Родитель 8ea49e0d13
Коммит 1c92f86ea4
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 27137D9E7D273FB2
1 изменённых файлов: 8 добавлений и 0 удалений

Просмотреть файл

@ -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