Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
setUp () | |
testGetDefaultGroup ($storeId, $defaultGroupData) | |
getDefaultGroupDataProvider () | |
testGetDefaultGroupNonExistentStore () | |
testIsReadonly ($groupId, $isDeleteable) | |
isReadonlyDataProvider () | |
testIsReadonlyNoSuchGroup () | |
![]() | |
addModelToDelete ($model, $secure=false) | |
processRestExceptionResult (\Exception $e) | |
Data Fields | |
const | SERVICE_NAME = "customerGroupManagementV1" |
const | SERVICE_VERSION = "V1" |
const | RESOURCE_PATH = "/V1/customerGroups" |
![]() | |
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 GroupManagementTest
Definition at line 18 of file GroupManagementTest.php.
getDefaultGroupDataProvider | ( | ) |
The testGetDefaultGroup data provider.
Definition at line 76 of file GroupManagementTest.php.
isReadonlyDataProvider | ( | ) |
The testIsReadonly data provider.
Definition at line 177 of file GroupManagementTest.php.
setUp | ( | ) |
Execute per test initialization.
Definition at line 37 of file GroupManagementTest.php.
testGetDefaultGroup | ( | $storeId, | |
$defaultGroupData | |||
) |
Verify the retrieval of the default group for storeId equal to 1.
int | $storeId | The store Id |
array | $defaultGroupData | The default group data for the store with the specified Id. |
@dataProvider getDefaultGroupDataProvider
Definition at line 52 of file GroupManagementTest.php.
testGetDefaultGroupNonExistentStore | ( | ) |
Verify the retrieval of a non-existent storeId will return an expected fault.
Definition at line 103 of file GroupManagementTest.php.
testIsReadonly | ( | $groupId, | |
$isDeleteable | |||
) |
Verify that the group with the specified Id can or cannot be deleted.
int | $groupId | The group Id |
bool | $isDeleteable | Whether the group can or cannot be deleted. |
@dataProvider isReadonlyDataProvider
Definition at line 149 of file GroupManagementTest.php.
testIsReadonlyNoSuchGroup | ( | ) |
Verify that the group with the specified Id can or cannot be deleted.
Definition at line 190 of file GroupManagementTest.php.
const RESOURCE_PATH = "/V1/customerGroups" |
Definition at line 22 of file GroupManagementTest.php.
const SERVICE_NAME = "customerGroupManagementV1" |
Definition at line 20 of file GroupManagementTest.php.
const SERVICE_VERSION = "V1" |
Definition at line 21 of file GroupManagementTest.php.