-
Notifications
You must be signed in to change notification settings - Fork 9.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/imported-magento-magento2-31553'…
… into 2.4-develop-pr120
- Loading branch information
Showing
6 changed files
with
152 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 46 additions & 0 deletions
46
...tion/testsuite/Magento/Sales/Model/ResourceModel/Order/Creditmemo/Grid/CollectionTest.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<?php | ||
/** | ||
* Copyright © Magento, Inc. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
declare(strict_types=1); | ||
|
||
namespace Magento\Sales\Model\ResourceModel\Order\Creditmemo\Grid; | ||
|
||
use Magento\Framework\ObjectManagerInterface; | ||
use Magento\TestFramework\Helper\Bootstrap; | ||
use PHPUnit\Framework\TestCase; | ||
|
||
/** | ||
* Test Magento\Sales\Model\ResourceModel\Order\Creditmemo\Grid | ||
*/ | ||
class CollectionTest extends TestCase | ||
{ | ||
/** | ||
* @var ObjectManagerInterface | ||
*/ | ||
private $objectManager; | ||
|
||
/** | ||
* @inheritDoc | ||
*/ | ||
protected function setUp(): void | ||
{ | ||
$this->objectManager = Bootstrap::getObjectManager(); | ||
} | ||
|
||
/** | ||
* @magentoDataFixture Magento/Sales/_files/creditmemo_list.php | ||
* | ||
* @return void | ||
*/ | ||
public function testCollectionOrderCurrencyCodeExist(): void | ||
{ | ||
/** @var $collection Collection */ | ||
$collection = $this->objectManager->get(Collection::class); | ||
$collection->addFieldToFilter('increment_id', ['eq' => '456']); | ||
foreach ($collection as $item) { | ||
$this->assertNotNull($item->getOrderCurrencyCode()); | ||
} | ||
} | ||
} |
46 changes: 46 additions & 0 deletions
46
...estsuite/Magento/Sales/Model/ResourceModel/Order/Creditmemo/Order/Grid/CollectionTest.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<?php | ||
/** | ||
* Copyright © Magento, Inc. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
declare(strict_types=1); | ||
|
||
namespace Magento\Sales\Model\ResourceModel\Order\Creditmemo\Order\Grid; | ||
|
||
use Magento\Framework\ObjectManagerInterface; | ||
use Magento\TestFramework\Helper\Bootstrap; | ||
use PHPUnit\Framework\TestCase; | ||
|
||
/** | ||
* Test Magento\Sales\Model\ResourceModel\Order\Creditmemo\Grid\Order\Grid | ||
*/ | ||
class CollectionTest extends TestCase | ||
{ | ||
/** | ||
* @var ObjectManagerInterface | ||
*/ | ||
private $objectManager; | ||
|
||
/** | ||
* @inheritDoc | ||
*/ | ||
protected function setUp(): void | ||
{ | ||
$this->objectManager = Bootstrap::getObjectManager(); | ||
} | ||
|
||
/** | ||
* @magentoDataFixture Magento/Sales/_files/creditmemo_list.php | ||
* | ||
* @return void | ||
*/ | ||
public function testCollectionOrderCurrencyCodeExist(): void | ||
{ | ||
/** @var $collection Collection */ | ||
$collection = $this->objectManager->get(Collection::class); | ||
$collection->addFieldToFilter('increment_id', ['eq' => '456']); | ||
foreach ($collection as $item) { | ||
$this->assertNotNull($item->getOrderCurrencyCode()); | ||
} | ||
} | ||
} |