Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Test of communication configuration reading and parsing.
@magentoCache config disabled
Definition at line 13 of file ConfigTest.php.
testGetTopic | ( | ) |
Get topic configuration by its name
Definition at line 65 of file ConfigTest.php.
testGetTopicInvalidName | ( | ) |
Get topic configuration by its name
@expectedException \Magento\Framework\Exception\LocalizedException @expectedExceptionMessage Topic "invalidTopic" is not configured.
Definition at line 78 of file ConfigTest.php.
testGetTopics | ( | ) |
testGetTopicsExceptionIncorrectRequestSchemaTypeInEnv | ( | ) |
@expectedException \LogicException @expectedExceptionMessage Request schema type for topic "customerCreated" must be "object_interface" or "service_
Definition at line 279 of file ConfigTest.php.
testGetTopicsExceptionInvalidHandler | ( | ) |
@expectedException \LogicException @expectedExceptionMessage Service method specified in the definition of handler "customHandler" for topic "custo
Definition at line 150 of file ConfigTest.php.
testGetTopicsExceptionInvalidMethodInHandlerInEnv | ( | ) |
@expectedException \LogicException @expectedExceptionMessage Service method specified in the definition of handler "customerCreatedFirst" for topic
Definition at line 255 of file ConfigTest.php.
testGetTopicsExceptionInvalidRequestSchema | ( | ) |
@expectedException \LogicException @expectedExceptionMessage Request schema definition for topic "customerUpdated" should reference existing
Definition at line 132 of file ConfigTest.php.
testGetTopicsExceptionInvalidRequestSchemaInEnv | ( | ) |
@expectedException \LogicException @expectedExceptionMessage Request schema definition for topic "customerCreated" should reference existing service
Definition at line 231 of file ConfigTest.php.
testGetTopicsExceptionInvalidResponseSchema | ( | ) |
@expectedException \LogicException @expectedExceptionMessage Response schema definition for topic "customerUpdated" should reference existing
Definition at line 123 of file ConfigTest.php.
testGetTopicsExceptionInvalidResponseSchemaInEnv | ( | ) |
@expectedException \LogicException @expectedExceptionMessage Response schema definition for topic "customerCreated" should reference existing type o
Definition at line 243 of file ConfigTest.php.
testGetTopicsExceptionInvalidTopicNameInEnv | ( | ) |
@expectedException \LogicException @expectedExceptionMessage Topic name "customerAdded" and attribute "name" = "customerCreated" must be equal
Definition at line 159 of file ConfigTest.php.
testGetTopicsExceptionIsNotBooleanTypeOfIsSynchronousInEnv | ( | ) |
@expectedException \LogicException @expectedExceptionMessage The attribute "is_synchronous" for topic "customerCreated" should have the value of the
Definition at line 291 of file ConfigTest.php.
testGetTopicsExceptionMissingRequest | ( | ) |
@expectedException \LogicException @expectedExceptionMessage Either "request" or "schema" attribute must be specified for topic "customerUpdated"
Definition at line 87 of file ConfigTest.php.
testGetTopicsExceptionMultipleHandlersSynchronousMode | ( | ) |
@expectedException \LogicException @expectedExceptionMessage Topic "customerDeleted" is configured for synchronous requests, that is why it must
Definition at line 141 of file ConfigTest.php.
testGetTopicsExceptionMultipleHandlersSynchronousModeInEnv | ( | ) |
@expectedException \LogicException @expectedExceptionMessage Topic "customerDeleted" is configured for synchronous requests, that is why it must
Definition at line 219 of file ConfigTest.php.
testGetTopicsExceptionNoAttributes | ( | ) |
@expectedException \LogicException @expectedExceptionMessage Either "request" or "schema" attribute must be specified for topic "customerRetrieved"
Definition at line 114 of file ConfigTest.php.
testGetTopicsExceptionNotExistingService | ( | ) |
@expectedException \LogicException @expectedExceptionMessage Service method specified in the definition of topic "customerRetrieved" is not
Definition at line 105 of file ConfigTest.php.
testGetTopicsExceptionNotExistingServiceMethod | ( | ) |
@expectedException \LogicException @expectedExceptionMessage Service method specified in the definition of topic "customerRetrieved" is not
Definition at line 96 of file ConfigTest.php.
testGetTopicsExceptionTopicWithExcessiveKeysInEnv | ( | ) |
@expectedException \LogicException @expectedExceptionMessage Topic "customerCreated" has excessive keys: [some_incorrect_key]
Definition at line 195 of file ConfigTest.php.
testGetTopicsExceptionTopicWithMissedKeysInEnv | ( | ) |
@expectedException \LogicException @expectedExceptionMessage Topic "customerCreated" has missed keys: [response]
Definition at line 183 of file ConfigTest.php.
testGetTopicsExceptionTopicWithNonMatchedNameInEnv | ( | ) |
@expectedException \LogicException @expectedExceptionMessage Topic name "customerDeleted" and attribute "name" = "customerRemoved" must be equal
Definition at line 207 of file ConfigTest.php.
testGetTopicsExceptionTopicWithoutDataInEnv | ( | ) |
@expectedException \LogicException @expectedExceptionMessage Topic "customerCreated" must contain data
Definition at line 171 of file ConfigTest.php.
testGetTopicsExceptionWithDisabledHandlerInEnv | ( | ) |
@expectedException \LogicException @expectedExceptionMessage Disabled handler "default" for topic "customerCreated" cannot be added to the config fi
Definition at line 267 of file ConfigTest.php.
testGetTopicsNumeric | ( | ) |
Get topic configuration by its name
@expectedException \LogicException @expectedExceptionMessage Service method specified in the definition of topic "customerDeletedNumbers" is not av
Definition at line 31 of file ConfigTest.php.
testGetTopicsNumericInvalid | ( | ) |
Get topic configuration by its name
@expectedException \Magento\Framework\Exception\LocalizedException @expectedExceptionMessage The XML in file "0" is invalid: Element 'topic', attribute 'schema': [facet 'pattern'] The value '55\Customer\Api\CustomerRepositoryInterface::delete' is not accepted by the pattern '[a-zA-Z]+[a-zA-Z0-9\]+::[a-zA-Z0-9]+'. Line: 9
Element 'topic', attribute 'schema': '55\Customer\Api\CustomerRepositoryInterface::delete' is not a valid value of the atomic type 'schemaType'. Line: 9
Element 'handler', attribute 'type': [facet 'pattern'] The value '55\Customer\Api\CustomerRepositoryInterface' is not accepted by the pattern '[a-zA-Z]+[a-zA-Z0-9\]+'. Line: 10
Element 'handler', attribute 'type': '55\Customer\Api\CustomerRepositoryInterface' is not a valid value of the atomic type 'serviceTypeType'. Line: 10 Verify the XML and try again.
Definition at line 57 of file ConfigTest.php.