Example #1
0
 public function testGetEntityTypeId()
 {
     $mockEntityType = $this->getMockBuilder('Magento\\Eav\\Model\\Entity\\Type')->disableOriginalConstructor()->getMock();
     $mockEntityType->expects($this->any())->method('getId')->will($this->returnValue(self::ORIG_CUSTOMER_ID));
     $this->resource->expects($this->any())->method('getEntityType')->will($this->returnValue($mockEntityType));
     $this->assertEquals(self::ORIG_CUSTOMER_ID, $this->address->getEntityTypeId());
 }