objectManager = $objectManager; $this->curlTransport = $curlTransport; } /** * Apply set up configuration profile. * * @return void * @throws \Exception */ public function apply() { parent::apply(); $this->curlTransport->write($_ENV['app_frontend_url'], [], CurlInterface::GET); $response = $this->curlTransport->read(); if (strpos($response, 'Home Page') !== false) { $this->objectManager->create( \Magento\Config\Test\TestStep\SetupConfigurationStep::class, ['configData' => $this->config] )->run(); } /** @var Cli $cli */ $cli = $this->objectManager->create(Cli::class); $cli->execute('setup:config:set', ['--enable-debug-logging=true']); } /** * Get name of the Application State Profile. * * @return string */ public function getName() { return 'Configuration Profile #1'; } }