mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-09-02 19:28:55 +00:00
Update books handling
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Tests\Unit\Extensions;
|
||||
|
||||
use Tests\TestCase;
|
||||
|
||||
class HelperCoverUrlTest extends TestCase
|
||||
{
|
||||
public function test_get_release_cover_returns_placeholder_for_negative_bookinfo_id(): void
|
||||
{
|
||||
$url = getReleaseCover((object) ['bookinfo_id' => -2]);
|
||||
|
||||
$this->assertStringContainsString('assets/images/no-cover.png', $url);
|
||||
}
|
||||
|
||||
public function test_get_release_cover_returns_placeholder_for_negative_music_id(): void
|
||||
{
|
||||
$url = getReleaseCover((object) ['musicinfo_id' => -2]);
|
||||
|
||||
$this->assertStringContainsString('assets/images/no-cover.png', $url);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user