|
| persist (FixtureInterface $fixture=null) |
|
Curl handler for creating Synonym Group.
Definition at line 17 of file Curl.php.
◆ persist()
persist |
( |
FixtureInterface |
$fixture = null | ) |
|
POST request for creating Synonym Group.
- Parameters
-
FixtureInterface | null | $fixture | [optional] |
- Returns
- array
- Exceptions
-
Definition at line 50 of file Curl.php.
52 $data = $this->replaceMappingData($fixture->getData());
55 $curl =
new BackendDecorator(
new CurlTransport(), $this->_configuration);
59 if (strpos(
$response,
'data-ui-id="messages-message-success"') ===
false) {
61 "Synonym Group entity creation by curl handler was not successful! Response: $response" 65 preg_match(
"`group_id\/(\d*?)\/`",
$response, $matches);
66 $id = isset($matches[1]) ? $matches[1] :
null;
68 return [
'group_id' =>
$id];
◆ $mappingData
Initial value:= [
'mergeOnConflict' => [
'Yes' => 1,
'No' => 0,
],
'scope_id' => [
'All Websites' => '0:0',
'All Store Views' => '1:0',
'Default Store View' => '1:1',
],
]
Definition at line 31 of file Curl.php.
◆ $saveUrl
$saveUrl = 'search/synonyms/save/' |
|
protected |
The documentation for this class was generated from the following file:
- vendor/magento/magento2-base/dev/tests/functional/tests/app/Magento/Search/Test/Handler/SynonymGroup/Curl.php