예제 #1
0
 /**
  * Get all tabs on the form
  *
  * @return array
  */
 protected function getTabs()
 {
     $result = [];
     $paths = glob(MTF_TESTS_PATH . preg_replace('/Magento\\/\\w+/', '*/*', str_replace('\\', '/', get_class($this))) . '.xml');
     $files = new File($paths);
     foreach ($files as $file) {
         $presetXml = simplexml_load_string($file);
         if ($presetXml instanceof \SimpleXMLElement) {
             $array = $this->xmlConverter->convert($presetXml);
             if (is_array($array)) {
                 $result = array_replace_recursive($result, $array);
             }
         }
     }
     return $result;
 }
예제 #2
0
 /**
  * Get all tabs on the form.
  *
  * @return array
  */
 protected function getTabs()
 {
     $result = [];
     $files = new File($this->getPaths());
     foreach ($files as $file) {
         $presetXml = simplexml_load_string($file);
         if ($presetXml instanceof \SimpleXMLElement) {
             $array = $this->xmlConverter->convert($presetXml);
             if (is_array($array)) {
                 $result = array_replace_recursive($result, $array);
             }
         }
     }
     return $result;
 }