[TESTS] Fix tests broken with rebased commits
This commit is contained in:
parent
8e12f5ee59
commit
e278efe61d
@ -33,11 +33,7 @@ class GSActorTest extends GNUsocialTestCase
|
|||||||
public function testGetAvatarUrl()
|
public function testGetAvatarUrl()
|
||||||
{
|
{
|
||||||
$actor = DB::findOneBy('gsactor', ['nickname' => 'taken_user']);
|
$actor = DB::findOneBy('gsactor', ['nickname' => 'taken_user']);
|
||||||
static::assertSame('/assets/default-avatar.svg', $actor->getAvatarUrl());
|
static::assertSame("/{$actor->getId()}/avatar", $actor->getAvatarUrl());
|
||||||
|
|
||||||
// $actor = DB::findOneBy('gsactor', ['nickname' => 'taken_user']);
|
|
||||||
// $id = $actor->getId();
|
|
||||||
// static::assertSame("/avatar/{$id}", $actor->getAvatarUrl());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testGetFromNickname()
|
public function testGetFromNickname()
|
||||||
|
@ -32,5 +32,7 @@ class LinkTest extends GNUsocialTestCase
|
|||||||
static::assertThrows(\InvalidArgumentException::class, fn () => Link::getOrCreate('not a url'));
|
static::assertThrows(\InvalidArgumentException::class, fn () => Link::getOrCreate('not a url'));
|
||||||
$link = Link::getOrCreate('https://gnu.org');
|
$link = Link::getOrCreate('https://gnu.org');
|
||||||
static::assertNotNull($link->getUrl());
|
static::assertNotNull($link->getUrl());
|
||||||
|
|
||||||
|
static::assertThrows(\InvalidArgumentException::class, fn () => Link::getOrCreate('https://' . $_ENV['SOCIAL_DOMAIN']));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user