Example #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;
 }
 /**
  * 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;
 }