Exemplo n.º 1
0
 /**
  * Verify that the specified customer has different default billing and shipping addresses.
  *
  * @magentoDataFixture Magento/Customer/_files/customer.php
  * @magentoDataFixture Magento/Customer/_files/customer_primary_addresses.php
  */
 public function testGetPrimaryAddressesBillingShippingDifferent()
 {
     $this->customerSession->setCustomerId(1);
     $addresses = $this->block->getPrimaryAddresses();
     $this->assertCount(2, $addresses);
     $this->assertNotEquals($addresses[0], $addresses[1]);
     $this->assertTrue($addresses[0]->isDefaultBilling());
     $this->assertTrue($addresses[1]->isDefaultShipping());
 }