Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
ProductLimitationTest.php
Go to the documentation of this file.
1 <?php
7 
10 
14 class ProductLimitationTest extends \PHPUnit\Framework\TestCase
15 {
19  protected $productLimitation;
20 
21  protected function setUp()
22  {
23  $helper = new ObjectManager($this);
24  $this->productLimitation = $helper->getObject(ProductLimitation::class);
25  }
26 
27  public function testGetUsePriceIndex()
28  {
29  $this->assertFalse($this->productLimitation->isUsingPriceIndex());
30  $this->productLimitation->setUsePriceIndex(true);
31  $this->assertTrue($this->productLimitation->isUsingPriceIndex());
32  }
33 }
$helper
Definition: iframe.phtml:13