Skip to content

Commit fe5e815

Browse files
committed
MQE-494: Create MFTF demo repository
- Fail gracefully if Magento is not running
1 parent 053c01f commit fe5e815

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Diff for: src/Magento/FunctionalTestingFramework/Module/MagentoRestDriver.php

+5
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,11 @@ class MagentoRestDriver extends REST
104104
public function _beforeSuite($settings = [])
105105
{
106106
parent::_beforeSuite($settings);
107+
108+
if (empty($this->config['url']) || empty($this->config['username']) || empty($this->config['password'])) {
109+
return;
110+
}
111+
107112
$this->haveHttpHeader('Content-Type', 'application/json');
108113
$this->sendPOST(
109114
'integration/admin/token',

0 commit comments

Comments
 (0)