File tree Expand file tree Collapse file tree 3 files changed +26
-2
lines changed
api-functional/testsuite/Magento/GraphQl/Customer
integration/testsuite/Magento/Customer/_files Expand file tree Collapse file tree 3 files changed +26
-2
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ protected function setUp()
44
44
*/
45
45
public function testGetCustomer ()
46
46
{
47
- $ currentEmail = 'customer @example.com ' ;
47
+ $ currentEmail = 'customer_male @example.com ' ;
48
48
$ currentPassword = 'password ' ;
49
49
$ customerGender = 'MALE ' ;
50
50
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ protected function setUp()
47
47
*/
48
48
public function testUpdateCustomer ()
49
49
{
50
- $ currentEmail = 'customer @example.com ' ;
50
+ $ currentEmail = 'customer_male @example.com ' ;
51
51
$ currentPassword = 'password ' ;
52
52
53
53
$ newPrefix = 'Dr ' ;
Original file line number Diff line number Diff line change 27
27
->setDefaultBilling (1 )
28
28
->setDefaultShipping (1 )
29
29
->setTaxvat ('12 ' )
30
+ ->setGender (0 );
31
+
32
+ $ customer ->isObjectNew (true );
33
+ $ customer ->save ();
34
+ $ customerRegistry ->remove ($ customer ->getId ());
35
+
36
+ $ customer = $ objectManager ->create (\Magento \Customer \Model \Customer::class);
37
+ /** @var Magento\Customer\Model\Customer $customer */
38
+ $ customer ->setWebsiteId (1 )
39
+ ->setId (2 )
40
+ ->setEmail ('customer_male@example.com ' )
41
+ ->setPassword ('password ' )
42
+ ->setGroupId (1 )
43
+ ->setStoreId (1 )
44
+ ->setIsActive (1 )
45
+ ->setPrefix ('Mr. ' )
46
+ ->setFirstname ('Veronica ' )
47
+ ->setMiddlename ('A ' )
48
+ ->setLastname ('Costello ' )
49
+ ->setSuffix ('Esq. ' )
50
+ ->setDefaultBilling (1 )
51
+ ->setDefaultShipping (1 )
52
+ ->setTaxvat ('12 ' )
30
53
->setGender (1 );
31
54
32
55
$ customer ->isObjectNew (true );
33
56
$ customer ->save ();
34
57
$ customerRegistry ->remove ($ customer ->getId ());
58
+
You can’t perform that action at this time.
0 commit comments