13 protected function setUp()
19 \
Magento\Framework\Api\ExtensionAttributesFactory::class,
29 $this->factory->create(\
Magento\Framework\Api\ExtensionAttributesFactoryTest::class);
37 $this->factory->create(\
Magento\TestModuleExtensionAttributes\Model\Data\FakeExtensibleOne::class);
45 $this->factory->create(\
Magento\TestModuleExtensionAttributes\Model\Data\FakeExtensibleTwo::class);
50 $this->assertInstanceOf(
51 \
Magento\TestModuleExtensionAttributes\Api\Data\FakeRegionExtension::class,
52 $this->factory->create(\
Magento\TestModuleExtensionAttributes\Model\Data\FakeRegion::class)
58 $this->expectException(
'LogicException');
59 $this->expectExceptionMessage(
60 "Class 'Magento\\Framework\\Api\\ExtensionAttributesFactoryTest' must implement an interface, " 61 .
"which extends from 'Magento\\Framework\\Api\\ExtensibleDataInterface'" 63 $this->factory->create(get_class($this));
testCreateThrowExceptionIfInterfaceNotImplemented()
testCreateWithLogicException()
testCreateThrowExceptionIfReturnIsIncorrect()
testCreateThrowExceptionIfInterfaceNotOverridden()
static getObjectManager()