Skip to content

Commit

Permalink
Fix download url test
Browse files Browse the repository at this point in the history
  • Loading branch information
pgrimaud committed Apr 19, 2024
1 parent f63fbc2 commit 0c1516c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/Utils/MediaDownloadHelperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ public function testInvalidMediaUrl()

public function testDownloadUrl()
{
$baseImg = 'https://cdn.discordapp.com/attachments/862683614256168990/862724864581959680/input1.png';
$baseImg = 'https://placehold.co/20';
$fileName = MediaDownloadHelper::downloadMedia($baseImg, __DIR__ . '/../cache');

$this->assertSame('attachments-862683614256168990-862724864581959680-input1.png', $fileName);
$this->assertSame('20', $fileName);
}
}

0 comments on commit 0c1516c

Please sign in to comment.