-
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 pull request #882 from magento-troll/MAGETWO-64796
[Troll] MAGETWO-58547: Remove uses of unserialize function
- Loading branch information
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
dev/tests/integration/testsuite/Magento/Customer/_files/customer_with_website.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,27 @@ | ||
<?php | ||
/** | ||
* Copyright © 2013-2017 Magento, Inc. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
|
||
/** @var \Magento\Framework\ObjectManagerInterface $objectManager */ | ||
$objectManager = \Magento\TestFramework\Helper\Bootstrap::getObjectManager(); | ||
|
||
/** @var \Magento\Store\Model\StoreManager $store */ | ||
$store = $objectManager->get(\Magento\Store\Model\StoreManager::class); | ||
|
||
/** @var \Magento\Customer\Model\Customer $customer */ | ||
$customer = $objectManager->create( | ||
\Magento\Customer\Model\Customer::class, | ||
[ | ||
'data' => [ | ||
'website_id' => $store->getDefaultStoreView()->getWebsiteId(), | ||
'email' => 'john.doe@magento.com', | ||
'store_id' => $store->getDefaultStoreView()->getId(), | ||
'is_active' => true, | ||
'firstname' => 'John', | ||
'lastname' => 'Doe', | ||
] | ||
] | ||
); | ||
$customer->save(); |