Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Gummibeer committed Jun 25, 2024
1 parent b6bead6 commit 0e1ebb4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions tests/ComponentTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public function it_can_render(): void
{
$expected = <<<'HTML'
<img
src="https://unavatar.now.sh/astrotomic.info"
src="https://unavatar.io/astrotomic.info"
alt="Astrotomic avatar"
loading="lazy"
/>
Expand All @@ -23,7 +23,7 @@ public function it_can_render_with_fallback(): void
{
$expected = <<<'HTML'
<img
src="https://unavatar.now.sh/astrotomic.info/?fallback=https%3A%2F%2Fexample.com%2Favatar.jpg"
src="https://unavatar.io/astrotomic.info/?fallback=https%3A%2F%2Fexample.com%2Favatar.jpg"
alt="astrotomic.info avatar"
loading="lazy"
/>
Expand All @@ -37,7 +37,7 @@ public function it_can_render_clearbit(): void
{
$expected = <<<'HTML'
<img
src="https://unavatar.now.sh/clearbit/astrotomic.info"
src="https://unavatar.io/clearbit/astrotomic.info"
alt="astrotomic.info avatar"
loading="lazy"
/>
Expand All @@ -51,7 +51,7 @@ public function it_can_render_deviantart(): void
{
$expected = <<<'HTML'
<img
src="https://unavatar.now.sh/deviantart/astrotomic"
src="https://unavatar.io/deviantart/astrotomic"
alt="astrotomic avatar"
loading="lazy"
/>
Expand All @@ -65,7 +65,7 @@ public function it_can_render_dribbble(): void
{
$expected = <<<'HTML'
<img
src="https://unavatar.now.sh/dribbble/astrotomic"
src="https://unavatar.io/dribbble/astrotomic"
alt="astrotomic avatar"
loading="lazy"
/>
Expand Down
6 changes: 3 additions & 3 deletions tests/UnavatarTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public function it_is_renderable(): void
$unavatar = Unavatar::github('Gummibeer');

static::assertArrayHasKey(Renderable::class, class_implements($unavatar));
static::assertSame('<img alt="Gummibeer\'s github avatar" src="https://unavatar.now.sh/github/Gummibeer" />', $unavatar->render());
static::assertSame('<img alt="Gummibeer&#039;s github avatar" src="https://unavatar.io/github/Gummibeer" />', $unavatar->render());
}

/** @test */
Expand All @@ -29,7 +29,7 @@ public function it_is_htmlable(): void
$unavatar = Unavatar::github('Gummibeer');

static::assertArrayHasKey(Htmlable::class, class_implements($unavatar));
static::assertSame('<img alt="Gummibeer\'s github avatar" src="https://unavatar.now.sh/github/Gummibeer" />', $unavatar->toHtml());
static::assertSame('<img alt="Gummibeer&#039;s github avatar" src="https://unavatar.io/github/Gummibeer" />', $unavatar->toHtml());
}

/** @test */
Expand All @@ -42,7 +42,7 @@ public function it_is_responsable_redirect(): void
$redirect = $unavatar->toResponse(Request::createFromGlobals());

static::assertInstanceOf(RedirectResponse::class, $redirect);
static::assertSame('https://unavatar.now.sh/github/Gummibeer', $redirect->getTargetUrl());
static::assertSame('https://unavatar.io/github/Gummibeer', $redirect->getTargetUrl());
}

/** @test */
Expand Down

0 comments on commit 0e1ebb4

Please sign in to comment.