/** * Test wrong type exception * * @expectedException \Magento\Framework\Exception\LocalizedException * @expectedExceptionMessage WrongClass doesn't extend \Magento\Framework\Filter\Template * @return void */ public function testWrongTypeException() { $className = 'WrongClass'; $filterMock = $this->getMock($className, [], [], '', false); $this->_objectManagerMock->expects($this->once())->method('create')->will($this->returnValue($filterMock)); $this->_factory->create($className); }
/** * Retrieve template processor for catalog content * * @return \Magento\Framework\Filter\Template */ public function getPageTemplateProcessor() { return $this->_templateFilterFactory->create($this->_templateFilterModel); }