41 protected function tearDown()
45 ->get(\
Magento\Framework\Registry::class);
48 $registry->register(
'isSecureArea',
true);
57 $registry->register(
'isSecureArea',
false);
70 public function testPriceForSmallBatch($batchCount,
$price, $expectedPrice)
78 \
Magento\CatalogRule\Model\Indexer\IndexBuilder::class,
79 [
'batchCount' => $batchCount]
82 $indexerBuilder->reindexFull();
84 foreach ([0, 1] as $customerGroupId) {
99 $this->product = $this->productRepository->get(
'simple');
103 ->setSku(uniqid($this->product->getSku() .
'-'))
104 ->setName(uniqid($this->product->getName() .
'-'))
105 ->setWebsiteIds([1]);
111 ->setSku(uniqid($this->product->getSku() .
'-'))
112 ->setName(uniqid($this->product->getName() .
'-'))
static getObjectManager()