GenreTest.php 347 B

1234567891011121314151617
  1. <?php
  2. namespace App\Tests\Entity;
  3. use App\Entity\Genre;
  4. use PHPUnit\Framework\TestCase;
  5. class GenreTest extends TestCase
  6. {
  7. public function testDefault(): void
  8. {
  9. $genre = new Genre();
  10. $genre->setName('Horreur');
  11. $this->assertSame('Horreur', $genre->getName());
  12. $this->assertNull($genre->getId());
  13. }
  14. }