Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
testGetAttributeMetadata ($attributeCode, $expectedMetadata) | |
getAttributeMetadataDataProvider () | |
testGetAllAttributesMetadata () | |
testGetCustomAttributesMetadata () | |
testGetAttributes ($formCode, $expectedMetadata) | |
getAttributesDataProvider () | |
checkValidationRules ($expectedResult, $actualResult) | |
checkMultipleAttributesValidationRules ($expectedResult, $actualResultSet) | |
![]() | |
addModelToDelete ($model, $secure=false) | |
processRestExceptionResult (\Exception $e) | |
Data Fields | |
const | SERVICE_NAME = "customerCustomerMetadataV1" |
const | SERVICE_VERSION = "V1" |
const | RESOURCE_PATH = "/V1/attributeMetadata/customer" |
![]() | |
const | AUTO_TEAR_DOWN_DISABLED = 0 |
const | AUTO_TEAR_DOWN_AFTER_METHOD = 1 |
const | AUTO_TEAR_DOWN_AFTER_CLASS = 2 |
const | ADAPTER_SOAP = 'soap' |
const | ADAPTER_REST = 'rest' |
Additional Inherited Members | |
![]() | |
static | setUpBeforeClass () |
static | tearDownAfterClass () |
static | setFixture ($key, $fixture, $tearDown=self::AUTO_TEAR_DOWN_AFTER_METHOD) |
static | getFixture ($key) |
static | callModelDelete ($model, $secure=false) |
static | deleteFixture ($key, $secure=false) |
![]() | |
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) | |
![]() | |
static | _setFixtureNamespace () |
static | _unsetFixtureNamespace () |
static | _getFixtureNamespace () |
static | _deleteFixtures ($fixtures) |
![]() | |
$_appCache | |
$_modelsToDelete = [] | |
$_origConfigValues = [] | |
$_webApiAdapters | |
$_webApiAdaptersMap | |
![]() | |
static | $_fixturesNamespace |
static | $_fixtures = [] |
static | $_methodLevelFixtures = [] |
static | $_classLevelFixtures = [] |
Class CustomerMetadataTest
Definition at line 16 of file CustomerMetadataTest.php.
checkMultipleAttributesValidationRules | ( | $expectedResult, | |
$actualResultSet | |||
) |
Check specific attribute validation rules in set of multiple attributes
array | $expectedResult | Set of expected attribute metadata |
array | $actualResultSet | Set of actual attribute metadata |
Definition at line 315 of file CustomerMetadataTest.php.
checkValidationRules | ( | $expectedResult, | |
$actualResult | |||
) |
Checks that expected and actual attribute metadata validation rules are equal and removes the validation rules entry from expected and actual attribute metadata
array | $expectedResult | |
array | $actualResult |
Definition at line 273 of file CustomerMetadataTest.php.
getAttributeMetadataDataProvider | ( | ) |
Data provider for testGetAttributeMetadata.
Definition at line 59 of file CustomerMetadataTest.php.
getAttributesDataProvider | ( | ) |
Data provider for testGetAttributes.
Definition at line 249 of file CustomerMetadataTest.php.
testGetAllAttributesMetadata | ( | ) |
Test retrieval of all customer attribute metadata.
Definition at line 157 of file CustomerMetadataTest.php.
testGetAttributeMetadata | ( | $attributeCode, | |
$expectedMetadata | |||
) |
Test retrieval of attribute metadata for the customer entity type.
string | $attributeCode | The attribute code of the requested metadata. |
array | $expectedMetadata | Expected entity metadata for the attribute code. @dataProvider getAttributeMetadataDataProvider |
Definition at line 29 of file CustomerMetadataTest.php.
testGetAttributes | ( | $formCode, | |
$expectedMetadata | |||
) |
Test retrieval of attributes
string | $formCode | Form code |
array | $expectedMetadata | The expected attribute metadata @dataProvider getAttributesDataProvider |
Definition at line 214 of file CustomerMetadataTest.php.
testGetCustomAttributesMetadata | ( | ) |
Test retrieval of custom customer attribute metadata.
Definition at line 187 of file CustomerMetadataTest.php.
const RESOURCE_PATH = "/V1/attributeMetadata/customer" |
Definition at line 20 of file CustomerMetadataTest.php.
const SERVICE_NAME = "customerCustomerMetadataV1" |
Definition at line 18 of file CustomerMetadataTest.php.
const SERVICE_VERSION = "V1" |
Definition at line 19 of file CustomerMetadataTest.php.