Ejemplo n.º 1
0
 /**
  * Get reader instance
  *
  * @return \Magento\Framework\ObjectManager\Config\Reader\Dom
  */
 protected function _getReader()
 {
     if (empty($this->_reader)) {
         $this->_reader = $this->_readerFactory->create();
     }
     return $this->_reader;
 }
Ejemplo n.º 2
0
 public function testCreate()
 {
     $this->_objectManager->expects($this->once())->method('create')->with('Magento\\Framework\\ObjectManager\\Config\\Reader\\Dom')->will($this->returnValue($this->_object));
     $this->_factory->create([1]);
 }