diff --git a/tests/Integration/BaseTestCase.php b/tests/Integration/BaseTestCase.php index 8a01c879..057b1e3a 100644 --- a/tests/Integration/BaseTestCase.php +++ b/tests/Integration/BaseTestCase.php @@ -12,6 +12,7 @@ use OxidEsales\Eshop\Core\Registry; use OxidEsales\EshopCommunity\Internal\Container\ContainerFactory; use OxidEsales\EshopCommunity\Internal\Framework\Database\QueryBuilderFactoryInterface; +use OxidEsales\EshopCommunity\Internal\Framework\FileSystem\ProjectRootLocator; use OxidEsales\GraphQL\Base\Tests\Integration\TokenTestCase; use Symfony\Component\Filesystem\Filesystem; use Symfony\Component\Filesystem\Path; @@ -41,7 +42,7 @@ protected function setActiveState(string $id, string $table = 'oxarticles', int protected function copyAssets(): void { $shopAssetDir = Path::join( - Registry::getConfig()->getConfigParam('sShopDir'), + Path::join((new ProjectRootLocator())->getProjectRoot(), 'source'), self::MANUFACTURER_MEDIA_PATH ); diff --git a/tests/Integration/Controller/ContentTest.php b/tests/Integration/Controller/ContentTest.php index 747e1103..8d527f20 100644 --- a/tests/Integration/Controller/ContentTest.php +++ b/tests/Integration/Controller/ContentTest.php @@ -9,6 +9,7 @@ namespace OxidEsales\GraphQL\Storefront\Tests\Integration\Controller; +use OxidEsales\EshopCommunity\Internal\Framework\Edition\Edition; use OxidEsales\EshopCommunity\Core\Di\ContainerFacade; use OxidEsales\EshopCommunity\Internal\Container\ContainerFactory; use OxidEsales\EshopCommunity\Internal\Framework\Database\QueryBuilderFactoryInterface;