|
| setUp () |
|
| tearDown () |
|
| _webApiCall ( $serviceInfo, $arguments=[], $webApiAdapterCode=null, $storeCode=null, $integration=null) |
|
| _markTestAsSoapOnly ($message=null) |
|
| _markTestAsRestOnly ($message=null) |
|
| _getWebApiAdapter ($webApiAdapterCode) |
|
| _assertMessagesEqual ($expectedMessages, $receivedMessages) |
|
| _cleanAppConfigCache () |
|
| _restoreAppConfig () |
|
| checkSoapFault ( $soapFault, $expectedMessage, $expectedFaultCode, $expectedErrorParams=[], $expectedWrappedErrors=[], $traceString=null) |
|
| _checkFaultParams ($expectedErrorParams, $errorDetails) |
|
| _checkWrappedErrors ($expectedWrappedErrors, $errorDetails) |
|
Definition at line 16 of file SearchTest.php.
◆ setUp()
Definition at line 27 of file SearchTest.php.
29 $productSku =
'simple';
static getObjectManager()
◆ testExistingProductSearch()
testExistingProductSearch |
( |
| ) |
|
@magentoApiDataFixture Magento/Catalog/_files/product_simple.php
Definition at line 39 of file SearchTest.php.
41 $productName = $this->product->getName();
48 self::assertArrayHasKey(
'search_criteria',
$response);
49 self::assertArrayHasKey(
'items',
$response);
50 self::assertGreaterThan(0, count(
$response[
'items']));
51 self::assertGreaterThan(0,
$response[
'items'][0][
'id']);
_webApiCall( $serviceInfo, $arguments=[], $webApiAdapterCode=null, $storeCode=null, $integration=null)
◆ testNonExistentProductSearch()
testNonExistentProductSearch |
( |
| ) |
|
◆ RESOURCE_PATH
const RESOURCE_PATH = '/V1/search/' |
◆ SERVICE_NAME
const SERVICE_NAME = 'searchV1' |
◆ SERVICE_VERSION
const SERVICE_VERSION = 'V1' |
The documentation for this class was generated from the following file:
- vendor/magento/magento2-base/dev/tests/api-functional/testsuite/Magento/Search/Api/SearchTest.php