diff --git a/Tests/Unit/Content/Domain/Model/ContentRichEntityTraitTest.php b/Tests/Unit/Content/Domain/Model/ContentRichEntityTraitTest.php index 2f6f60cc..0a825c03 100644 --- a/Tests/Unit/Content/Domain/Model/ContentRichEntityTraitTest.php +++ b/Tests/Unit/Content/Domain/Model/ContentRichEntityTraitTest.php @@ -14,6 +14,7 @@ namespace Sulu\Bundle\ContentBundle\Tests\Unit\Content\Domain\Model; use PHPUnit\Framework\TestCase; +use Sulu\Bundle\ContentBundle\Content\Domain\Model\DimensionContentInterface; use Sulu\Bundle\ContentBundle\Tests\Application\ExampleTestBundle\Entity\Example; use Sulu\Bundle\ContentBundle\Tests\Application\ExampleTestBundle\Entity\ExampleDimensionContent; @@ -22,7 +23,7 @@ class ContentRichEntityTraitTest extends TestCase protected function getContentRichEntityInstance(): Example { return new class() extends Example { - public function createDimensionContent(): ExampleDimensionContent + public function createDimensionContent(): DimensionContentInterface { throw new \RuntimeException('Should not be called while executing tests.'); } diff --git a/composer.json b/composer.json index b7e8c344..18ea8ebb 100644 --- a/composer.json +++ b/composer.json @@ -20,7 +20,7 @@ "friendsofsymfony/rest-bundle": "^2.6 || ^3.0", "massive/search-bundle": "^2.4", "ramsey/uuid": "^3.8 || ^4.0", - "sulu/sulu": "^2.1 || ^2.6@dev", + "sulu/sulu": "^2.4 || ^2.6@dev", "symfony/config": "^4.4 || ^5.4 || ^6.0", "symfony/dependency-injection": "^4.4 || ^5.4 || ^6.0", "symfony/event-dispatcher": "^4.4 || ^5.4 || ^6.0",