Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
module-catalog
Test
Unit
Model
ResourceModel
Product
Collection
ProductLimitationTest.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Catalog\Test\Unit\Model\ResourceModel\Product\Collection
;
7
8
use
Magento\Framework\TestFramework\Unit\Helper\ObjectManager
;
9
use
Magento\Catalog\Model\ResourceModel\Product\Collection\ProductLimitation
;
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
$helper
Definition:
iframe.phtml:13
Magento\Catalog\Test\Unit\Model\ResourceModel\Product\Collection\ProductLimitationTest\setUp
setUp()
Definition:
ProductLimitationTest.php:21
Magento\Catalog\Test\Unit\Model\ResourceModel\Product\Collection\ProductLimitationTest\testGetUsePriceIndex
testGetUsePriceIndex()
Definition:
ProductLimitationTest.php:27
Magento\Catalog\Test\Unit\Model\ResourceModel\Product\Collection\ProductLimitationTest
Definition:
ProductLimitationTest.php:14
Magento\Catalog\Model\ResourceModel\Product\Collection\ProductLimitation
Definition:
ProductLimitation.php:14
Magento\Framework\TestFramework\Unit\Helper\ObjectManager
Definition:
ObjectManager.php:13
Magento\Catalog\Test\Unit\Model\ResourceModel\Product\Collection
Definition:
ProductLimitationTest.php:6
Magento\Catalog\Test\Unit\Model\ResourceModel\Product\Collection\ProductLimitationTest\$productLimitation
$productLimitation
Definition:
ProductLimitationTest.php:19