Skip to content

Commit

Permalink
Merge pull request #882 from magento-troll/MAGETWO-64796
Browse files Browse the repository at this point in the history
[Troll] MAGETWO-58547: Remove uses of unserialize function
  • Loading branch information
Alexander Akimov authored Mar 1, 2017
2 parents 2efb39f + b964996 commit a005167
Showing 1 changed file with 27 additions and 0 deletions.
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();

0 comments on commit a005167

Please sign in to comment.