@@ -76,6 +76,8 @@ protected function tearDown()
76
76
}
77
77
78
78
/**
79
+ * Test create new customer new then update first name.
80
+ *
79
81
* @magentoDbIsolation enabled
80
82
*/
81
83
public function testCreateCustomerNewThenUpdateFirstName ()
@@ -110,6 +112,8 @@ public function testCreateCustomerNewThenUpdateFirstName()
110
112
}
111
113
112
114
/**
115
+ * Test create new customer.
116
+ *
113
117
* @magentoDbIsolation enabled
114
118
*/
115
119
public function testCreateNewCustomer ()
@@ -137,6 +141,8 @@ public function testCreateNewCustomer()
137
141
}
138
142
139
143
/**
144
+ * Test update customer.
145
+ *
140
146
* @dataProvider updateCustomerDataProvider
141
147
* @magentoAppArea frontend
142
148
* @magentoDataFixture Magento/Customer/_files/customer.php
@@ -212,6 +218,8 @@ public function testUpdateCustomer($defaultBilling, $defaultShipping)
212
218
}
213
219
214
220
/**
221
+ * Test update customer address.
222
+ *
215
223
* @magentoAppArea frontend
216
224
* @magentoDataFixture Magento/Customer/_files/customer.php
217
225
* @magentoDataFixture Magento/Customer/_files/customer_two_addresses.php
@@ -253,6 +261,8 @@ public function testUpdateCustomerAddress()
253
261
}
254
262
255
263
/**
264
+ * Test update customer preserve all addresses.
265
+ *
256
266
* @magentoAppArea frontend
257
267
* @magentoDataFixture Magento/Customer/_files/customer.php
258
268
* @magentoDataFixture Magento/Customer/_files/customer_two_addresses.php
@@ -278,6 +288,8 @@ public function testUpdateCustomerPreserveAllAddresses()
278
288
}
279
289
280
290
/**
291
+ * Test update customer delete all addresses with empty array.
292
+ *
281
293
* @magentoAppArea frontend
282
294
* @magentoDataFixture Magento/Customer/_files/customer.php
283
295
* @magentoDataFixture Magento/Customer/_files/customer_two_addresses.php
@@ -303,6 +315,8 @@ public function testUpdateCustomerDeleteAllAddressesWithEmptyArray()
303
315
}
304
316
305
317
/**
318
+ * Test search customers.
319
+ *
306
320
* @param \Magento\Framework\Api\Filter[] $filters
307
321
* @param \Magento\Framework\Api\Filter[] $filterGroup
308
322
* @param array $expectedResult array of expected results indexed by ID
@@ -336,7 +350,7 @@ public function testSearchCustomers($filters, $filterGroup, $expectedResult)
336
350
}
337
351
338
352
/**
339
- * Test ordering
353
+ * Test search customers order.
340
354
*
341
355
* @magentoDataFixture Magento/Customer/_files/three_customers.php
342
356
* @magentoDbIsolation enabled
@@ -380,6 +394,8 @@ public function testSearchCustomersOrder()
380
394
}
381
395
382
396
/**
397
+ * Test delete.
398
+ *
383
399
* @magentoAppArea adminhtml
384
400
* @magentoDataFixture Magento/Customer/_files/customer.php
385
401
* @magentoAppIsolation enabled
@@ -398,6 +414,8 @@ public function testDelete()
398
414
}
399
415
400
416
/**
417
+ * Test delete by id.
418
+ *
401
419
* @magentoAppArea adminhtml
402
420
* @magentoDataFixture Magento/Customer/_files/customer.php
403
421
* @magentoAppIsolation enabled
@@ -416,7 +434,7 @@ public function testDeleteById()
416
434
}
417
435
418
436
/**
419
- * DataProvider update customer
437
+ * DataProvider update customer.
420
438
*
421
439
* @return array
422
440
*/
@@ -434,6 +452,11 @@ public function updateCustomerDataProvider()
434
452
];
435
453
}
436
454
455
+ /**
456
+ * DataProvider search customers.
457
+ *
458
+ * @return array
459
+ */
437
460
public function searchCustomersDataProvider ()
438
461
{
439
462
$ builder = Bootstrap::getObjectManager ()->create (\Magento \Framework \Api \FilterBuilder::class);
@@ -474,7 +497,7 @@ public function searchCustomersDataProvider()
474
497
}
475
498
476
499
/**
477
- * Check defaults billing and shipping in customer model
500
+ * Check default shippings in customer model.
478
501
*
479
502
* @param $customerId
480
503
* @param $defaultBilling
@@ -504,6 +527,8 @@ protected function expectedDefaultShippingsInCustomerModelAttributes(
504
527
}
505
528
506
529
/**
530
+ * Test update default shipping and default billing address.
531
+ *
507
532
* @magentoDataFixture Magento/Customer/_files/customer.php
508
533
* @magentoDbIsolation enabled
509
534
*/
@@ -531,13 +556,13 @@ public function testUpdateDefaultShippingAndDefaultBillingTest()
531
556
$ this ->assertEquals (
532
557
$ savedCustomer ->getDefaultBilling (),
533
558
$ oldDefaultBilling ,
534
- 'Default billing shoud not be overridden '
559
+ 'Default billing should not be overridden '
535
560
);
536
561
537
562
$ this ->assertEquals (
538
563
$ savedCustomer ->getDefaultShipping (),
539
564
$ oldDefaultShipping ,
540
- 'Default shipping shoud not be overridden '
565
+ 'Default shipping should not be overridden '
541
566
);
542
567
}
543
568
}
0 commit comments