File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
dev/tests/integration/testsuite/Magento/Customer/_files Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 2
2
/**
3
3
* Copyright © Magento, Inc. All rights reserved.
4
4
* See COPYING.txt for license details.
5
- */
5
+ */
6
+
6
7
use Magento \Customer \Api \CustomerRepositoryInterface ;
7
8
use Magento \Customer \Api \Data \CustomerInterface ;
8
9
use Magento \Customer \Api \Data \CustomerInterfaceFactory ;
19
20
/** @var CustomerInterfaceFactory $customerFactory */
20
21
$ customerFactory = $ objectManager ->get (CustomerInterfaceFactory::class);
21
22
22
- for ($ i= 1 ; $ i<= 5 ; $ i ++) {
23
+ for ($ i = 1 ; $ i <= 5 ; $ i ++) {
23
24
/** @var CustomerInterface $customer */
24
25
$ customer = $ customerFactory ->create ();
25
26
$ customer ->setFirstname ('John ' )
26
27
->setGroupId (1 )
27
28
->setLastname ('Smith ' )
28
29
->setWebsiteId (1 )
29
- ->setEmail ('customer ' . $ i . '@example.com ' );
30
+ ->setEmail ('customer ' . $ i . '@example.com ' );
30
31
try {
31
32
$ customerRepository ->save ($ customer , 'password ' );
32
33
} catch (\Exception $ e ) {
You can’t perform that action at this time.
0 commit comments