From 2c4b09a2e321fdf94ed7dfec9e6fa381406f1e68 Mon Sep 17 00:00:00 2001 From: hkreuter Date: Fri, 3 Jan 2025 11:41:31 +0100 Subject: [PATCH] Run with shop 8.0.x, WIP --- tests/Integration/BaseTestCase.php | 3 ++- tests/Integration/Controller/ContentTest.php | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) 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;