Analyze URL specified in the phpunit.xml.
Definition at line 19 of file StorefrontAnalyzer.php.
◆ __construct()
__construct |
( |
ObjectManagerInterface |
$objectManager, |
|
|
UrlAnalyzer |
$urlAnalyzer, |
|
|
CurlTransport |
$curlTransport |
|
) |
| |
- Parameters
-
ObjectManagerInterface | $objectManager | |
UrlAnalyzer | $urlAnalyzer | |
CurlTransport | $curlTransport | |
Definition at line 47 of file StorefrontAnalyzer.php.
52 parent::__construct();
54 $this->urlAnalyzer = $urlAnalyzer;
55 $this->curlTransport = $curlTransport;
◆ configure()
Configure command.
- Returns
- void
Definition at line 63 of file StorefrontAnalyzer.php.
66 $this->setName(
'troubleshooting:check-magento-storefront')
67 ->setDescription(
'Check that app_frontend_url config is correct and Magento installed.');
◆ execute()
execute |
( |
InputInterface |
$input, |
|
|
OutputInterface |
$output |
|
) |
| |
|
protected |
Execute command.
- Parameters
-
InputInterface | $input | |
OutputInterface | $output | |
- Returns
- void @SuppressWarnings(PHPMD.UnusedFormalParameter)
Definition at line 78 of file StorefrontAnalyzer.php.
80 \PHPUnit\Util\Configuration::getInstance(MTF_PHPUNIT_FILE)->handlePHPConfiguration();
81 $output = $this->objectManager->create(
85 $output->writeln(
"Verifying Magento Storefront...");
86 $storefrontUrlAnalyzerMessages = $this->runStorefrontUrlAnalyzer();
87 if (isset($storefrontUrlAnalyzerMessages[
'error']) ===
false) {
88 $output->outputMessages($this->urlAnalyzer->fixLastSlash(
'app_frontend_url'));
89 $output->outputMessages($this->urlAnalyzer->checkDomain($_ENV[
'app_frontend_url']));
91 $output->outputMessages($storefrontUrlAnalyzerMessages);
93 $output->writeln(
"Storefront verification finished.");
The documentation for this class was generated from the following file: