コード例 #1
0
 /**
  * Reader object initialization.
  *
  * @return Magento_Acl_Config_Reader
  */
 protected function _getReader()
 {
     if (is_null($this->_reader)) {
         $aclResourceFiles = $this->_getAclResourceFiles();
         $this->_reader = $this->_readerFactory->createReader(array($aclResourceFiles));
     }
     return $this->_reader;
 }
コード例 #2
0
 public function testCreateReader()
 {
     $arguments = array('5', '6');
     $this->_objectManager->expects($this->once())->method('create')->with('Mage_Webapi_Model_Authorization_Config_Reader', $arguments, false)->will($this->returnValue($this->_expectedObject));
     $this->assertEquals($this->_expectedObject, $this->_model->createReader($arguments));
 }