6 declare(strict_types=1);
15 use PHPUnit\Framework\TestCase;
22 private $storeManager;
27 private $productRepository;
32 private $storeCodeBefore;
37 private $configurablePriceResolver;
48 $this->storeCodeBefore = $this->storeManager->getStore()->getCode();
52 ConfigurablePriceResolver::class,
53 [
'priceResolver' => $regularPrice]
75 $this->storeManager->setCurrentStore(
'store_for_us_website');
80 self::assertEquals(10, $actualPrice);
102 $this->storeManager->setCurrentStore(
'store_for_us_website');
106 self::assertEquals(20, $actualPrice);
116 if (
null !== $this->storeCodeBefore) {
117 $this->storeManager->setCurrentStore($this->storeCodeBefore);
testResolvePriceIfOneOfChildIsOutOfStock()
@codingStandardsIgnoreStart
testResolvePriceWithAllChildren()
static getObjectManager()