diff --git a/web/modules/custom/my_module/tests/src/Unit/Entity/PostTest.php b/web/modules/custom/my_module/tests/src/Unit/Entity/PostTest.php index 0419d69..254408a 100644 --- a/web/modules/custom/my_module/tests/src/Unit/Entity/PostTest.php +++ b/web/modules/custom/my_module/tests/src/Unit/Entity/PostTest.php @@ -2,8 +2,16 @@ namespace Drupal\Tests\my_module\Unit\Entity; +use Drupal\my_module\Entity\Post; use Drupal\Tests\UnitTestCase; class PostTest extends UnitTestCase { + /** @test */ + public function it_returns_the_title() { + $post = new Post(); + + $this->assertSame('Test post', $post->getTitle()); + } + }