diff --git a/Tests/Unit/Api/NewsApiTest.php b/Tests/Unit/Api/NewsApiTest.php index 06be6e4..6e090e7 100644 --- a/Tests/Unit/Api/NewsApiTest.php +++ b/Tests/Unit/Api/NewsApiTest.php @@ -24,6 +24,7 @@ final class NewsApiTest extends TestCase { use NewsTrait; + public function testApiDto(): void { $apiDto = $this->generateApiNews(); diff --git a/Tests/Unit/Traits/Api/NewsTrait.php b/Tests/Unit/Traits/Api/NewsTrait.php index 88abc8b..4e261d0 100644 --- a/Tests/Unit/Traits/Api/NewsTrait.php +++ b/Tests/Unit/Traits/Api/NewsTrait.php @@ -21,7 +21,7 @@ trait NewsTrait { use \TheCadien\Bundle\SuluNewsBundle\Tests\Unit\Traits\Entity\NewsTrait; - + public function generateApiNews(): ApiNews { return new ApiNews(