Skip to content

Commit

Permalink
OXDEV-7822 Remove getCurrentShopId method from BasicContext
Browse files Browse the repository at this point in the history
Signed-off-by: Anton Fedurtsya <anton@fedurtsya.com>
  • Loading branch information
Sieg committed Mar 28, 2024
1 parent 42d98d3 commit 3764448
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
8 changes: 0 additions & 8 deletions source/Internal/Transition/Utility/BasicContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,14 +124,6 @@ public function getDefaultShopId(): int
return ShopIdCalculator::BASE_SHOP_ID;
}

/**
* @return int
*/
public function getCurrentShopId(): int
{
return $this->getDefaultShopId();
}

/**
* @return array
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@
use OxidEsales\EshopCommunity\Internal\Framework\DIContainer\DataObject\DIConfigWrapper;
use OxidEsales\EshopCommunity\Internal\Transition\Utility\BasicContext;
use OxidEsales\EshopCommunity\Internal\Transition\Utility\BasicContextInterface;
use OxidEsales\EshopCommunity\Tests\Integration\Internal\Container\Fixtures\CE\DummyExecutor;
use OxidEsales\EshopCommunity\Internal\Transition\Utility\Context;
use OxidEsales\EshopCommunity\Tests\ContainerTrait;
use OxidEsales\EshopCommunity\Tests\Integration\Internal\Container\Fixtures\CE\DummyExecutor;
use PHPUnit\Framework\TestCase;
use Symfony\Component\Filesystem\Path;

Expand Down Expand Up @@ -123,7 +124,7 @@ public function testWriting()

public function testClearingCacheOnWriting()
{
$container = (new ContainerBuilder(new BasicContext()))->getContainer();
$container = (new ContainerBuilder(new Context()))->getContainer();
$container->getDefinition(ProjectYamlDaoInterface::class)->setPublic(true);
$container->compile();

Expand Down

0 comments on commit 3764448

Please sign in to comment.