Exemplo n.º 1
0
 /**
  * Verify that the Dashboard::getCustomer() method returns a valid Customer Data.
  *
  * @magentoDataFixture Magento/Customer/_files/customer.php
  */
 public function testGetCustomer()
 {
     $customer = $this->customerAccountService->getCustomer(1);
     $this->customerSession->setCustomerId(1);
     $object = $this->block->getCustomer();
     $this->assertEquals($customer, $object);
     $this->assertInstanceOf('Magento\\Customer\\Service\\V1\\Data\\Customer', $object);
 }
Exemplo n.º 2
0
 /**
  * Verify that the Dashboard::getCustomer() method returns a valid Customer Data.
  *
  * @magentoDataFixture Magento/Customer/_files/customer.php
  */
 public function testGetCustomer()
 {
     $customer = $this->customerRepository->getById(1);
     $this->customerSession->setCustomerId(1);
     $object = $this->block->getCustomer();
     $this->assertEquals($customer, $object);
     $this->assertInstanceOf('Magento\\Customer\\Api\\Data\\CustomerInterface', $object);
 }