-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #372 from magento-folks/develop
[Folks] Bug-fix (P0)
- Loading branch information
Showing
6 changed files
with
12 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -103,7 +103,7 @@ public function testSetAddress() | |
$addressData = [ | ||
'firstname' => 'John', | ||
'lastname' => 'Smith', | ||
'email' => '[email protected]', | ||
'email' => '', | ||
'company' => 'eBay Inc', | ||
'street' => ['Typical Street', 'Tiny House 18'], | ||
'city' => 'Big City', | ||
|
@@ -134,6 +134,7 @@ public function testSetAddress() | |
$this->assertContains($streetLine, $quote->getBillingAddress()->getStreet()); | ||
} | ||
unset($addressData['street']); | ||
unset($addressData['email']); | ||
$this->assertEquals('billing', $savedData['address_type']); | ||
//check the rest of fields | ||
foreach ($addressData as $key => $value) { | ||
|
@@ -226,7 +227,6 @@ public function testSetMyAddress() | |
$addressData = [ | ||
'firstname' => 'John', | ||
'lastname' => 'Smith', | ||
'email' => '[email protected]', | ||
'company' => 'eBay Inc', | ||
'street' => ['Typical Street', 'Tiny House 18'], | ||
'city' => 'Big City', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -112,7 +112,7 @@ public function testSetAddress() | |
$addressData = [ | ||
'firstname' => 'John', | ||
'lastname' => 'Smith', | ||
'email' => '[email protected]', | ||
'email' => '', | ||
'company' => 'eBay Inc', | ||
'street' => ['Typical Street', 'Tiny House 18'], | ||
'city' => 'Big City', | ||
|
@@ -143,6 +143,7 @@ public function testSetAddress() | |
$this->assertContains($streetLine, $quote->getBillingAddress()->getStreet()); | ||
} | ||
unset($addressData['street']); | ||
unset($addressData['email']); | ||
$this->assertEquals('billing', $savedData['address_type']); | ||
//check the rest of fields | ||
foreach ($addressData as $key => $value) { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -153,7 +153,7 @@ public function testSetAddress() | |
$addressData = [ | ||
'firstname' => 'John', | ||
'lastname' => 'Smith', | ||
'email' => '[email protected]', | ||
'email' => '', | ||
'company' => 'eBay Inc', | ||
'street' => ['Typical Street', 'Tiny House 18'], | ||
'city' => 'Big City', | ||
|
@@ -183,6 +183,7 @@ public function testSetAddress() | |
//custom checks for street, region and address_type | ||
$this->assertEquals($addressData['street'], $quote->getShippingAddress()->getStreet()); | ||
unset($addressData['street']); | ||
unset($addressData['email']); | ||
|
||
$this->assertEquals('shipping', $savedData['address_type']); | ||
//check the rest of fields | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -128,7 +128,7 @@ public function testSetAddress() | |
$addressData = [ | ||
'firstname' => 'John', | ||
'lastname' => 'Smith', | ||
'email' => '[email protected]', | ||
'email' => '', | ||
'company' => 'eBay Inc', | ||
'street' => ['Typical Street', 'Tiny House 18'], | ||
'city' => 'Big City', | ||
|
@@ -158,6 +158,7 @@ public function testSetAddress() | |
//custom checks for street, region and address_type | ||
$this->assertEquals($addressData['street'], $quote->getShippingAddress()->getStreet()); | ||
unset($addressData['street']); | ||
unset($addressData['email']); | ||
|
||
$this->assertEquals('shipping', $savedData['address_type']); | ||
//check the rest of fields | ||
|
@@ -306,7 +307,6 @@ public function testSetMyAddress() | |
$addressData = [ | ||
'firstname' => 'John', | ||
'lastname' => 'Smith', | ||
'email' => '[email protected]', | ||
'company' => 'eBay Inc', | ||
'street' => ['Typical Street', 'Tiny House 18'], | ||
'city' => 'Big City', | ||
|