13 private $objectManager;
23 private $metadataPoolMock;
27 $this->objectManager = new \Magento\Framework\TestFramework\Unit\Helper\ObjectManager($this);
28 $this->metadataPoolMock =
30 $this->resolver = new \Magento\Framework\EntityManager\TypeResolver($this->metadataPoolMock);
40 $customerDataObject = $this->objectManager->getObject($dataObject);
41 $this->metadataPoolMock->expects($this->any())
42 ->method(
'hasConfiguration')
45 [$interfaceName,
true]
48 $this->assertEquals($interfaceName, $this->resolver->resolve($customerDataObject));
58 \Magento\Customer\Model\Data\Customer::class,
59 \Magento\Customer\Api\Data\CustomerInterface::class
62 \Magento\Catalog\Model\Category::class,
63 \Magento\Catalog\Api\Data\CategoryInterface::class,
testResolve($dataObject, $interfaceName)