Skip to content

Commit c6734a6

Browse files
author
Serhiy Shkolyarenko
committed
MAGETWO-38824: email cannot be retrieved from address on one page checkout
soap tests fix
1 parent 841199c commit c6734a6

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

dev/tests/api-functional/testsuite/Magento/Quote/Api/BillingAddressManagementTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ public function testSetAddress()
103103
$addressData = [
104104
'firstname' => 'John',
105105
'lastname' => 'Smith',
106+
'email' => '',
106107
'company' => 'eBay Inc',
107108
'street' => ['Typical Street', 'Tiny House 18'],
108109
'city' => 'Big City',
@@ -133,6 +134,7 @@ public function testSetAddress()
133134
$this->assertContains($streetLine, $quote->getBillingAddress()->getStreet());
134135
}
135136
unset($addressData['street']);
137+
unset($addressData['email']);
136138
$this->assertEquals('billing', $savedData['address_type']);
137139
//check the rest of fields
138140
foreach ($addressData as $key => $value) {

dev/tests/api-functional/testsuite/Magento/Quote/Api/GuestBillingAddressManagementTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ public function testSetAddress()
112112
$addressData = [
113113
'firstname' => 'John',
114114
'lastname' => 'Smith',
115+
'email' => '',
115116
'company' => 'eBay Inc',
116117
'street' => ['Typical Street', 'Tiny House 18'],
117118
'city' => 'Big City',
@@ -142,6 +143,7 @@ public function testSetAddress()
142143
$this->assertContains($streetLine, $quote->getBillingAddress()->getStreet());
143144
}
144145
unset($addressData['street']);
146+
unset($addressData['email']);
145147
$this->assertEquals('billing', $savedData['address_type']);
146148
//check the rest of fields
147149
foreach ($addressData as $key => $value) {

dev/tests/api-functional/testsuite/Magento/Quote/Api/GuestShippingAddressManagementTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ public function testSetAddress()
153153
$addressData = [
154154
'firstname' => 'John',
155155
'lastname' => 'Smith',
156+
'email' => '',
156157
'company' => 'eBay Inc',
157158
'street' => ['Typical Street', 'Tiny House 18'],
158159
'city' => 'Big City',
@@ -182,6 +183,7 @@ public function testSetAddress()
182183
//custom checks for street, region and address_type
183184
$this->assertEquals($addressData['street'], $quote->getShippingAddress()->getStreet());
184185
unset($addressData['street']);
186+
unset($addressData['email']);
185187

186188
$this->assertEquals('shipping', $savedData['address_type']);
187189
//check the rest of fields

dev/tests/api-functional/testsuite/Magento/Quote/Api/ShippingAddressManagementTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ public function testSetAddress()
128128
$addressData = [
129129
'firstname' => 'John',
130130
'lastname' => 'Smith',
131+
'email' => '',
131132
'company' => 'eBay Inc',
132133
'street' => ['Typical Street', 'Tiny House 18'],
133134
'city' => 'Big City',
@@ -157,6 +158,7 @@ public function testSetAddress()
157158
//custom checks for street, region and address_type
158159
$this->assertEquals($addressData['street'], $quote->getShippingAddress()->getStreet());
159160
unset($addressData['street']);
161+
unset($addressData['email']);
160162

161163
$this->assertEquals('shipping', $savedData['address_type']);
162164
//check the rest of fields

0 commit comments

Comments
 (0)