1
0
mirror of synced 2024-11-24 05:56:09 +03:00

Merge pull request #21 from iyzoer/master

Fixes for marketplace
This commit is contained in:
Alex Lushpai 2019-01-24 16:11:07 +03:00 committed by GitHub
commit fd2524b207
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View File

@ -19,8 +19,7 @@ class Icml
private $resourceModelProduct;
private $searchCriteriaBuilder;
private $productRepository;
const DIMENSION_FIELDS = ['height', 'length', 'width'];
private $dimensionFields = ['height', 'length', 'width'];
public function __construct(
\Magento\Store\Model\StoreManagerInterface $manager,
@ -444,7 +443,7 @@ class Icml
*/
private function checkDimension($attrCode)
{
foreach (self::DIMENSION_FIELDS as $dimensionField) {
foreach ($this->dimensionFields as $dimensionField) {
if (mb_strpos($attrCode, $dimensionField) !== false) {
return [$dimensionField => $attrCode];
}

View File

@ -1,5 +1,7 @@
<?php
namespace Retailcrm\Retailcrm\Test\Unit\Block\Frontend;
class DaemonCollectorTest extends \PHPUnit\Framework\TestCase
{
private $unit;