Skip to content
Snippets Groups Projects
Commit 76547773 authored by Leonid Poluyanov's avatar Leonid Poluyanov
Browse files

MAGETWO-86657: Import existing customer with only three columns will override...

MAGETWO-86657: Import existing customer with only three columns will override customer group_id and store_id
parent 4962e140
Branches
No related merge requests found
......@@ -153,7 +153,7 @@ class CustomerTest extends \PHPUnit\Framework\TestCase
/** @var $customersCollection \Magento\Customer\Model\ResourceModel\Customer\Collection */
$customersCollection = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()->create(
'Magento\Customer\Model\ResourceModel\Customer\Collection'
\Magento\Customer\Model\ResourceModel\Customer\Collection::class
);
$customersCollection->resetData();
$customersCollection->clear();
......@@ -172,7 +172,7 @@ class CustomerTest extends \PHPUnit\Framework\TestCase
$objectManager = \Magento\TestFramework\Helper\Bootstrap::getObjectManager();
$existingCustomer = $objectManager->get(
'Magento\Framework\Registry'
\Magento\Framework\Registry::class
)->registry(
'_fixture/Magento_ImportExport_Customer'
);
......@@ -208,6 +208,12 @@ class CustomerTest extends \PHPUnit\Framework\TestCase
$updatedCustomer->getCreatedAt(),
'Creation date must not be changed'
);
$this->assertEquals(
$existingCustomer->getCustomerGroupId(),
$updatedCustomer->getCustomerGroupId(),
'Customer group must not be changed'
);
}
/**
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment