/** * @magentoDataFixture Magento/Customer/_files/customer.php * @magentoDataFixture Magento/Customer/_files/customer_two_addresses.php * @magentoDataFixture Magento/Customer/_files/customer_no_address.php * @dataProvider getDefaultShippingDataProvider */ public function testGetDefaultShipping($customerId, $expected) { if (!empty($customerId)) { $this->currentCustomer->setCustomerId($customerId); } $this->assertEquals($expected, $this->_block->getDefaultShipping()); }