Definition at line 12 of file ObsoleteMenuTest.php.
◆ testMenuDeclaration()
- Parameters
-
Definition at line 14 of file ObsoleteMenuTest.php.
16 $invoker = new \Magento\Framework\App\Utility\AggregateInvoker($this);
21 function ($menuFile) {
22 $menuXml = simplexml_load_file($menuFile);
23 $xpath =
'/config/menu/*[boolean(./children) or boolean(./title) or boolean(./action)]';
25 $menuXml->xpath($xpath),
26 'Obsolete menu structure detected in file ' . $menuFile .
'.'
The documentation for this class was generated from the following file: