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 = "customerAddressMetadataV1" |
const | SERVICE_VERSION = "V1" |
const | RESOURCE_PATH = "/V1/attributeMetadata/customerAddress" |
![]() | |
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 AddressMetadataTest
Definition at line 16 of file AddressMetadataTest.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 246 of file AddressMetadataTest.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 204 of file AddressMetadataTest.php.
getAttributeMetadataDataProvider | ( | ) |
Data provider for testGetAttributeMetadata.
Definition at line 58 of file AddressMetadataTest.php.
getAttributesDataProvider | ( | ) |
Data provider for testGetAttributes.
Definition at line 184 of file AddressMetadataTest.php.
testGetAllAttributesMetadata | ( | ) |
Test retrieval of all address attribute metadata.
Definition at line 93 of file AddressMetadataTest.php.
testGetAttributeMetadata | ( | $attributeCode, | |
$expectedMetadata | |||
) |
Test retrieval of attribute metadata for the address 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 AddressMetadataTest.php.
testGetAttributes | ( | $formCode, | |
$expectedMetadata | |||
) |
Test retrieval of attributes
string | $formCode | Form code |
array | $expectedMetadata | The expected attribute metadata @dataProvider getAttributesDataProvider |
Definition at line 148 of file AddressMetadataTest.php.
testGetCustomAttributesMetadata | ( | ) |
Test retrieval of custom address attribute metadata.
@magentoApiDataFixture Magento/Customer/_files/attribute_user_defined_address_custom_attribute.php
Definition at line 120 of file AddressMetadataTest.php.
const RESOURCE_PATH = "/V1/attributeMetadata/customerAddress" |
Definition at line 20 of file AddressMetadataTest.php.
const SERVICE_NAME = "customerAddressMetadataV1" |
Definition at line 18 of file AddressMetadataTest.php.
const SERVICE_VERSION = "V1" |
Definition at line 19 of file AddressMetadataTest.php.