|
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
| setUp () | |
| tearDown () | |
| testCreateCustomer () | |
| testCreateCustomerWithErrors () | |
| testCreateCustomerWithoutOptionalFields () | |
| testActivateCustomer () | |
| testGetCustomerActivateCustomer () | |
| testValidateResetPasswordLinkTokenInvalidToken () | |
| testInitiatePasswordMissingRequiredFields () | |
| testInitiatePasswordReset () | |
| testSendPasswordResetLinkBadEmailOrWebsite () | |
| testGetConfirmationStatus () | |
| testResendConfirmation () | |
| testResendConfirmationBadEmailOrWebsite () | |
| testValidateCustomerData () | |
| testIsReadonly () | |
| testEmailAvailable () | |
| testEmailAvailableInvalidEmail () | |
| testCustomAttributes () | |
| testGetDefaultBillingAddress () | |
| testGetDefaultShippingAddress () | |
| testCreateCustomerWithSubscription () | |
| testUnsubscribeCustomer () | |
Public Member Functions inherited from WebapiAbstract | |
| addModelToDelete ($model, $secure=false) | |
| processRestExceptionResult (\Exception $e) | |
Data Fields | |
| const | SERVICE_VERSION = 'V1' |
| const | SERVICE_NAME = 'customerAccountManagementV1' |
| const | RESOURCE_PATH = '/V1/customers' |
| const | ATTRIBUTE_CODE = 'attribute_code' |
| const | ATTRIBUTE_VALUE = 'attribute_value' |
Data Fields inherited from WebapiAbstract | |
| 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' |
Protected Member Functions | |
| _createCustomer () | |
| getFirstFixtureAddressData () | |
Protected Member Functions inherited from WebapiAbstract | |
| 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) | |
Additional Inherited Members | |
Static Public Member Functions inherited from WebapiAbstract | |
| 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) |
Static Protected Member Functions inherited from WebapiAbstract | |
| static | _setFixtureNamespace () |
| static | _unsetFixtureNamespace () |
| static | _getFixtureNamespace () |
| static | _deleteFixtures ($fixtures) |
Protected Attributes inherited from WebapiAbstract | |
| $_appCache | |
| $_modelsToDelete = [] | |
| $_origConfigValues = [] | |
| $_webApiAdapters | |
| $_webApiAdaptersMap | |
Static Protected Attributes inherited from WebapiAbstract | |
| static | $_fixturesNamespace |
| static | $_fixtures = [] |
| static | $_methodLevelFixtures = [] |
| static | $_classLevelFixtures = [] |
Test class for Magento\Customer\Api\AccountManagementInterface
@SuppressWarnings(PHPMD.CouplingBetweenObjects)
Definition at line 24 of file AccountManagementTest.php.
|
protected |
|
protected |
Retrieve data of the first fixture address.
Definition at line 809 of file AccountManagementTest.php.
| setUp | ( | ) |
Execute per test initialization.
Definition at line 87 of file AccountManagementTest.php.
| tearDown | ( | ) |
Clean up shared dependencies
Definition at line 128 of file AccountManagementTest.php.
| testActivateCustomer | ( | ) |
Test customer activation when it is required
@magentoConfigFixture default_store customer/create_account/confirm 0
Definition at line 249 of file AccountManagementTest.php.
| testCreateCustomer | ( | ) |
Definition at line 165 of file AccountManagementTest.php.
| testCreateCustomerWithErrors | ( | ) |
Definition at line 171 of file AccountManagementTest.php.
| testCreateCustomerWithoutOptionalFields | ( | ) |
Definition at line 216 of file AccountManagementTest.php.
| testCreateCustomerWithSubscription | ( | ) |
Definition at line 829 of file AccountManagementTest.php.
| testCustomAttributes | ( | ) |
@magentoApiDataFixture Magento/Customer/_files/attribute_user_defined_address.php @magentoApiDataFixture Magento/Customer/_files/attribute_user_defined_customer.php
Definition at line 684 of file AccountManagementTest.php.
| testEmailAvailable | ( | ) |
Definition at line 638 of file AccountManagementTest.php.
| testEmailAvailableInvalidEmail | ( | ) |
Definition at line 660 of file AccountManagementTest.php.
| testGetConfirmationStatus | ( | ) |
Definition at line 490 of file AccountManagementTest.php.
| testGetCustomerActivateCustomer | ( | ) |
Definition at line 280 of file AccountManagementTest.php.
| testGetDefaultBillingAddress | ( | ) |
@magentoApiDataFixture Magento/Customer/_files/customer.php @magentoApiDataFixture Magento/Customer/_files/customer_two_addresses.php
Definition at line 744 of file AccountManagementTest.php.
| testGetDefaultShippingAddress | ( | ) |
@magentoApiDataFixture Magento/Customer/_files/customer.php @magentoApiDataFixture Magento/Customer/_files/customer_two_addresses.php
Definition at line 771 of file AccountManagementTest.php.
| testInitiatePasswordMissingRequiredFields | ( | ) |
Definition at line 379 of file AccountManagementTest.php.
| testInitiatePasswordReset | ( | ) |
Definition at line 415 of file AccountManagementTest.php.
| testIsReadonly | ( | ) |
Definition at line 617 of file AccountManagementTest.php.
| testResendConfirmation | ( | ) |
Definition at line 511 of file AccountManagementTest.php.
| testResendConfirmationBadEmailOrWebsite | ( | ) |
Definition at line 536 of file AccountManagementTest.php.
| testSendPasswordResetLinkBadEmailOrWebsite | ( | ) |
Definition at line 441 of file AccountManagementTest.php.
| testUnsubscribeCustomer | ( | ) |
Definition at line 843 of file AccountManagementTest.php.
| testValidateCustomerData | ( | ) |
Definition at line 583 of file AccountManagementTest.php.
| testValidateResetPasswordLinkTokenInvalidToken | ( | ) |
Definition at line 337 of file AccountManagementTest.php.
| const ATTRIBUTE_CODE = 'attribute_code' |
Sample values for testing
Definition at line 33 of file AccountManagementTest.php.
| const ATTRIBUTE_VALUE = 'attribute_value' |
Definition at line 34 of file AccountManagementTest.php.
| const RESOURCE_PATH = '/V1/customers' |
Definition at line 28 of file AccountManagementTest.php.
| const SERVICE_NAME = 'customerAccountManagementV1' |
Definition at line 27 of file AccountManagementTest.php.
| const SERVICE_VERSION = 'V1' |
Definition at line 26 of file AccountManagementTest.php.