mirror of
https://github.com/AnimeThemes/animethemes-server.git
synced 2026-07-26 08:44:30 +02:00
45 lines
851 B
PHP
45 lines
851 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use App\Models\Discord\DiscordThread;
|
|
use App\Models\Wiki\Anime;
|
|
use Illuminate\Foundation\Testing\WithFaker;
|
|
use Tests\TestCase;
|
|
|
|
/**
|
|
* Class DiscordThreadTest.
|
|
*/
|
|
class DiscordThreadTest extends TestCase
|
|
{
|
|
use WithFaker;
|
|
|
|
/**
|
|
* Thread shall be nameable.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function testNameable(): void
|
|
{
|
|
$thread = DiscordThread::factory()
|
|
->for(Anime::factory())
|
|
->createOne();
|
|
|
|
static::assertIsString($thread->getName());
|
|
}
|
|
|
|
/**
|
|
* Thread shall have subtitle.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function testHasSubtitle(): void
|
|
{
|
|
$thread = DiscordThread::factory()
|
|
->for(Anime::factory())
|
|
->createOne();
|
|
|
|
static::assertIsString($thread->getSubtitle());
|
|
}
|
|
}
|