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-inventory-low-quantity-notification
Test
Integration
Model
ResourceModel
LowQuantityCollectionTest.php
Go to the documentation of this file.
1
<?php
6
declare(strict_types=1);
7
8
namespace
Magento\InventoryLowQuantityNotification\Test\Integration\Model\ResourceModel
;
9
10
use
Magento\InventoryLowQuantityNotification\Model\ResourceModel\LowQuantityCollection
;
11
use
Magento\InventoryLowQuantityNotificationApi\Api\Data\SourceItemConfigurationInterface
;
12
use
Magento\TestFramework\Helper\Bootstrap
;
13
use PHPUnit\Framework\TestCase;
14
15
class
LowQuantityCollectionTest
extends
TestCase
16
{
20
private
$lowQuantityCollection;
21
22
protected
function
setUp
()
23
{
24
$this->lowQuantityCollection =
Bootstrap::getObjectManager
()->create(LowQuantityCollection::class);
25
}
26
39
public
function
testLowQuantityCollection
()
40
{
41
$expectedSourceCodes = [
42
'eu-1'
43
];
44
$actualSourceCodes = $this->lowQuantityCollection->getColumnValues(
45
SourceItemConfigurationInterface::SOURCE_CODE
46
);
47
48
$this->assertEquals($expectedSourceCodes, $actualSourceCodes);
49
}
50
}
Magento\InventoryLowQuantityNotification\Test\Integration\Model\ResourceModel\LowQuantityCollectionTest
Definition:
LowQuantityCollectionTest.php:15
Magento\TestFramework\Helper\Bootstrap
Definition:
Bootstrap.php:12
Magento\InventoryLowQuantityNotification\Model\ResourceModel\LowQuantityCollection
Definition:
LowQuantityCollection.php:33
Magento\InventoryLowQuantityNotificationApi\Api\Data\SourceItemConfigurationInterface
Definition:
SourceItemConfigurationInterface.php:17
Magento\InventoryLowQuantityNotification\Test\Integration\Model\ResourceModel\LowQuantityCollectionTest\setUp
setUp()
Definition:
LowQuantityCollectionTest.php:22
Magento\InventoryLowQuantityNotification\Test\Integration\Model\ResourceModel\LowQuantityCollectionTest\testLowQuantityCollection
testLowQuantityCollection()
Definition:
LowQuantityCollectionTest.php:39
Magento\InventoryLowQuantityNotification\Test\Integration\Model\ResourceModel
Definition:
BulkConfigurationAssignTest.php:8
Magento\InventoryLowQuantityNotificationApi\Api\Data\SourceItemConfigurationInterface\SOURCE_CODE
const SOURCE_CODE
Definition:
SourceItemConfigurationInterface.php:22
Magento\TestFramework\Helper\Bootstrap\getObjectManager
static getObjectManager()
Definition:
Bootstrap.php:125