Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
testGetRequestTokenInvalidConsumerKey () | |
testGetRequestTokenInvalidConsumerSecret () | |
testGetAccessToken () | |
testGetAccessTokenInvalidVerifier () | |
testGetAccessTokenConsumerMismatch () | |
testAccessApiInvalidAccessToken () | |
![]() | |
addModelToDelete ($model, $secure=false) | |
processRestExceptionResult (\Exception $e) | |
Static Public Member Functions | |
static | consumerFixture ($date=null) |
![]() | |
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) |
Protected Member Functions | |
setUp () | |
tearDown () | |
_getOauthClient ($consumerKey, $consumerSecret) | |
![]() | |
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) | |
Protected Attributes | |
$_oAuthClients = [] | |
![]() | |
$_appCache | |
$_modelsToDelete = [] | |
$_origConfigValues = [] | |
$_webApiAdapters | |
$_webApiAdaptersMap | |
Static Protected Attributes | |
static | $_consumer |
static | $_token |
static | $_consumerKey |
static | $_consumerSecret |
static | $_verifier |
![]() | |
static | $_fixturesNamespace |
static | $_fixtures = [] |
static | $_methodLevelFixtures = [] |
static | $_classLevelFixtures = [] |
Additional Inherited Members | |
![]() | |
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' |
![]() | |
static | _setFixtureNamespace () |
static | _unsetFixtureNamespace () |
static | _getFixtureNamespace () |
static | _deleteFixtures ($fixtures) |
@magentoApiDataFixture consumerFixture
Definition at line 13 of file RestTest.php.
|
protected |
Definition at line 197 of file RestTest.php.
|
static |
Create a consumer
Clear the credentials because during the fixture generation, any previous credentials are invalidated
Definition at line 42 of file RestTest.php.
|
protected |
Definition at line 33 of file RestTest.php.
|
protected |
Definition at line 55 of file RestTest.php.
testAccessApiInvalidAccessToken | ( | ) |
@expectedException \Exception @expectedExceptionMessage 400 Bad Request
Definition at line 184 of file RestTest.php.
testGetAccessToken | ( | ) |
Definition at line 120 of file RestTest.php.
testGetAccessTokenConsumerMismatch | ( | ) |
@expectedException \Exception @expectedExceptionMessage 401 Unauthorized
Definition at line 163 of file RestTest.php.
testGetAccessTokenInvalidVerifier | ( | ) |
@expectedException \Exception @expectedExceptionMessage 401 Unauthorized
Definition at line 148 of file RestTest.php.
testGetRequestTokenInvalidConsumerKey | ( | ) |
@expectedException \Exception @expectedExceptionMessage 401 Unauthorized
Definition at line 104 of file RestTest.php.
testGetRequestTokenInvalidConsumerSecret | ( | ) |
@expectedException \Exception @expectedExceptionMessage 401 Unauthorized
Definition at line 114 of file RestTest.php.
|
staticprotected |
Definition at line 19 of file RestTest.php.
|
staticprotected |
Definition at line 25 of file RestTest.php.
|
staticprotected |
Definition at line 28 of file RestTest.php.
|
protected |
Definition at line 16 of file RestTest.php.
|
staticprotected |
Definition at line 22 of file RestTest.php.
|
staticprotected |
Definition at line 31 of file RestTest.php.