commit
fd2524b207
@ -19,8 +19,7 @@ class Icml
|
|||||||
private $resourceModelProduct;
|
private $resourceModelProduct;
|
||||||
private $searchCriteriaBuilder;
|
private $searchCriteriaBuilder;
|
||||||
private $productRepository;
|
private $productRepository;
|
||||||
|
private $dimensionFields = ['height', 'length', 'width'];
|
||||||
const DIMENSION_FIELDS = ['height', 'length', 'width'];
|
|
||||||
|
|
||||||
public function __construct(
|
public function __construct(
|
||||||
\Magento\Store\Model\StoreManagerInterface $manager,
|
\Magento\Store\Model\StoreManagerInterface $manager,
|
||||||
@ -444,7 +443,7 @@ class Icml
|
|||||||
*/
|
*/
|
||||||
private function checkDimension($attrCode)
|
private function checkDimension($attrCode)
|
||||||
{
|
{
|
||||||
foreach (self::DIMENSION_FIELDS as $dimensionField) {
|
foreach ($this->dimensionFields as $dimensionField) {
|
||||||
if (mb_strpos($attrCode, $dimensionField) !== false) {
|
if (mb_strpos($attrCode, $dimensionField) !== false) {
|
||||||
return [$dimensionField => $attrCode];
|
return [$dimensionField => $attrCode];
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
namespace Retailcrm\Retailcrm\Test\Unit\Block\Frontend;
|
||||||
|
|
||||||
class DaemonCollectorTest extends \PHPUnit\Framework\TestCase
|
class DaemonCollectorTest extends \PHPUnit\Framework\TestCase
|
||||||
{
|
{
|
||||||
private $unit;
|
private $unit;
|
||||||
|
Loading…
Reference in New Issue
Block a user