[TESTS] Fix tests broken with rebased commits

This commit is contained in:
Hugo Sales 2021-08-18 17:40:37 +01:00
parent 8e12f5ee59
commit e278efe61d
Signed by: someonewithpc
GPG Key ID: 7D0C7EAFC9D835A0
2 changed files with 3 additions and 5 deletions

View File

@ -33,11 +33,7 @@ class GSActorTest extends GNUsocialTestCase
public function testGetAvatarUrl()
{
$actor = DB::findOneBy('gsactor', ['nickname' => 'taken_user']);
static::assertSame('/assets/default-avatar.svg', $actor->getAvatarUrl());
// $actor = DB::findOneBy('gsactor', ['nickname' => 'taken_user']);
// $id = $actor->getId();
// static::assertSame("/avatar/{$id}", $actor->getAvatarUrl());
static::assertSame("/{$actor->getId()}/avatar", $actor->getAvatarUrl());
}
public function testGetFromNickname()

View File

@ -32,5 +32,7 @@ class LinkTest extends GNUsocialTestCase
static::assertThrows(\InvalidArgumentException::class, fn () => Link::getOrCreate('not a url'));
$link = Link::getOrCreate('https://gnu.org');
static::assertNotNull($link->getUrl());
static::assertThrows(\InvalidArgumentException::class, fn () => Link::getOrCreate('https://' . $_ENV['SOCIAL_DOMAIN']));
}
}