Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
magento2-functional-testing-framework
src
Magento
FunctionalTestingFramework
DataGenerator
Persist
Curl
AbstractExecutor.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\FunctionalTestingFramework\DataGenerator\Persist\Curl
;
8
9
use
Magento\FunctionalTestingFramework\Util\Protocol\CurlInterface
;
10
14
abstract
class
AbstractExecutor
implements
CurlInterface
15
{
21
protected
static
$baseUrl
=
null
;
22
28
protected
static
function
resolveBaseUrl
()
29
{
30
31
if
((getenv(
'MAGENTO_RESTAPI_SERVER_HOST'
) !==
false
)
32
&& (getenv(
'MAGENTO_RESTAPI_SERVER_HOST'
) !==
''
) ) {
33
self::$baseUrl = getenv(
'MAGENTO_RESTAPI_SERVER_HOST'
);
34
}
else
{
35
self::$baseUrl = getenv(
'MAGENTO_BASE_URL'
);
36
}
37
38
if
((getenv(
'MAGENTO_RESTAPI_SERVER_PORT'
) !==
false
)
39
&& (getenv(
'MAGENTO_RESTAPI_SERVER_PORT'
) !==
''
)) {
40
self::$baseUrl .=
':'
. getenv(
'MAGENTO_RESTAPI_SERVER_PORT'
);
41
}
42
43
self::$baseUrl = rtrim(self::$baseUrl,
'/'
) .
'/'
;
44
}
45
}
Magento\FunctionalTestingFramework\Util\Protocol\CurlInterface
Definition:
CurlInterface.php:12
Magento\FunctionalTestingFramework\DataGenerator\Persist\Curl\AbstractExecutor
Definition:
AbstractExecutor.php:14
Magento\FunctionalTestingFramework\DataGenerator\Persist\Curl\AbstractExecutor\$baseUrl
static $baseUrl
Definition:
AbstractExecutor.php:21
Magento\FunctionalTestingFramework\DataGenerator\Persist\Curl\AbstractExecutor\resolveBaseUrl
static resolveBaseUrl()
Definition:
AbstractExecutor.php:28
Magento\FunctionalTestingFramework\DataGenerator\Persist\Curl
Definition:
AbstractExecutor.php:7