Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
LowQuantityCollectionTest.php
Go to the documentation of this file.
1 <?php
6 declare(strict_types=1);
7 
9 
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(
46  );
47 
48  $this->assertEquals($expectedSourceCodes, $actualSourceCodes);
49  }
50 }