/** * @expectedException \InvalidArgumentException */ public function testGetInstanceException() { $objectManagerMock = $this->getMock('Magento\\Framework\\ObjectManagerInterface'); $this->contentTypeFactory = new ContentTypeFactory($objectManagerMock); $objectManagerMock->expects($this->once())->method('get')->willReturnSelf(); $this->contentTypeFactory->get(); }
/** * Get render engine * * @return \Magento\Ui\ContentType\ContentTypeInterface */ protected function getRenderEngine() { return $this->contentTypeFactory->get($this->renderContext->getAcceptType()); }