forked from GNUsocial/gnu-social
[TESTS] Fix tests broken with rebased commits
This commit is contained in:
parent
5bcabbb025
commit
4a781d483a
@ -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()
|
||||
|
@ -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']));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user