| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 30 | protected function execute(InputInterface $input, OutputInterface $output) |
||
| 31 | { |
||
| 32 | $test = new ExtractNavigationXpathTest(); |
||
| 33 | $test->setName('testExecute'); |
||
| 34 | $test->setUrl($input->getArgument('url')); |
||
| 35 | $test->setCategory($input->getArgument('category')); |
||
| 36 | $test->run(); |
||
| 37 | |||
| 38 | $output->writeln('Paste the following lines into your theme configuration file'); |
||
| 39 | $output->writeln(sprintf("\$this->navigationBaseXPathSelector = '%s';", $test->getBaseXpath())); |
||
| 40 | $output->writeln(sprintf("\$this->navigationChildXPathSelector = '%s';", $test->getChildXpath())); |
||
| 41 | } |
||
| 42 | |||
| 43 | } |