Skip to content

Commit 6576e49

Browse files
author
Michael Logvin
committed
MAGETWO-37614: Stabilize story
1 parent 92d9d67 commit 6576e49

File tree

1 file changed

+8
-1
lines changed
  • dev/tests/integration/testsuite/Magento/CustomerImportExport/Model/Import

1 file changed

+8
-1
lines changed

dev/tests/integration/testsuite/Magento/CustomerImportExport/Model/Import/AddressTest.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,18 @@ class AddressTest extends \PHPUnit_Framework_TestCase
7474
'not_delete' => '72701', // not deleted address
7575
];
7676

77+
/** @var \Magento\Customer\Model\Resource\Customer */
78+
protected $customerResource;
79+
7780
/**
7881
* Init new instance of address entity adapter
7982
*/
8083
protected function setUp()
8184
{
85+
/** @var \Magento\Catalog\Model\Resource\Product $productResource */
86+
$this->customerResource = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()->get(
87+
'Magento\Customer\Model\Resource\Customer'
88+
);
8289
$this->_entityAdapter = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()->create(
8390
$this->_testClassName
8491
);
@@ -336,7 +343,7 @@ public function testSaveCustomerDefaults()
336343

337344
// set customer defaults
338345
$defaults = [
339-
'customer_entity' => [
346+
$this->customerResource->getTable('customer_entity') => [
340347
$customerId => ['default_billing' => $addressId, 'default_shipping' => $addressId],
341348
],
342349
];

0 commit comments

Comments
 (0)