Skip to content

Commit 623e87f

Browse files
committed
Applying coding standards to already existent long lines into configuration integration test file
1 parent 11ccb29 commit 623e87f

File tree

1 file changed

+48
-16
lines changed
  • dev/tests/integration/testsuite/Magento/Framework/Communication

1 file changed

+48
-16
lines changed

dev/tests/integration/testsuite/Magento/Framework/Communication/ConfigTest.php

Lines changed: 48 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ public function testGetTopics()
3131
public function testGetTopicsNumeric()
3232
{
3333
$this->expectException(\LogicException::class);
34-
$this->expectExceptionMessage('Service method specified in the definition of topic "customerDeletedNumbers" is not av');
34+
$this->expectExceptionMessage(
35+
'Service method specified in the definition of topic "customerDeletedNumbers" is not av'
36+
);
3537

3638
$this->getConfigInstance([__DIR__ . '/_files/valid_communication_numeric.xml'])->getTopics();
3739
}
@@ -92,7 +94,9 @@ public function testGetTopicInvalidName()
9294
public function testGetTopicsExceptionMissingRequest()
9395
{
9496
$this->expectException(\LogicException::class);
95-
$this->expectExceptionMessage('Either "request" or "schema" attribute must be specified for topic "customerUpdated"');
97+
$this->expectExceptionMessage(
98+
'Either "request" or "schema" attribute must be specified for topic "customerUpdated"'
99+
);
96100

97101
$this->getConfigInstance([__DIR__ . '/_files/communication_missing_request.xml'])->getTopics();
98102
}
@@ -122,7 +126,9 @@ public function testGetTopicsExceptionNotExistingService()
122126
public function testGetTopicsExceptionNoAttributes()
123127
{
124128
$this->expectException(\LogicException::class);
125-
$this->expectExceptionMessage('Either "request" or "schema" attribute must be specified for topic "customerRetrieved"');
129+
$this->expectExceptionMessage(
130+
'Either "request" or "schema" attribute must be specified for topic "customerRetrieved"'
131+
);
126132

127133
$this->getConfigInstance([__DIR__ . '/_files/communication_no_attributes.xml'])->getTopics();
128134
}
@@ -132,7 +138,9 @@ public function testGetTopicsExceptionNoAttributes()
132138
public function testGetTopicsExceptionInvalidResponseSchema()
133139
{
134140
$this->expectException(\LogicException::class);
135-
$this->expectExceptionMessage('Response schema definition for topic "customerUpdated" should reference existing');
141+
$this->expectExceptionMessage(
142+
'Response schema definition for topic "customerUpdated" should reference existing'
143+
);
136144

137145
$this->getConfigInstance([__DIR__ . '/_files/communication_response_not_existing_service.xml'])->getTopics();
138146
}
@@ -142,7 +150,9 @@ public function testGetTopicsExceptionInvalidResponseSchema()
142150
public function testGetTopicsExceptionInvalidRequestSchema()
143151
{
144152
$this->expectException(\LogicException::class);
145-
$this->expectExceptionMessage('Request schema definition for topic "customerUpdated" should reference existing');
153+
$this->expectExceptionMessage(
154+
'Request schema definition for topic "customerUpdated" should reference existing'
155+
);
146156

147157
$this->getConfigInstance([__DIR__ . '/_files/communication_request_not_existing_service.xml'])->getTopics();
148158
}
@@ -152,7 +162,9 @@ public function testGetTopicsExceptionInvalidRequestSchema()
152162
public function testGetTopicsExceptionMultipleHandlersSynchronousMode()
153163
{
154164
$this->expectException(\LogicException::class);
155-
$this->expectExceptionMessage('Topic "customerDeleted" is configured for synchronous requests, that is why it must');
165+
$this->expectExceptionMessage(
166+
'Topic "customerDeleted" is configured for synchronous requests, that is why it must'
167+
);
156168

157169
$this->getConfigInstance([__DIR__ . '/_files/communication_multiple_handlers_synchronous_mode.xml'])->getTopics();
158170
}
@@ -162,7 +174,9 @@ public function testGetTopicsExceptionMultipleHandlersSynchronousMode()
162174
public function testGetTopicsExceptionInvalidHandler()
163175
{
164176
$this->expectException(\LogicException::class);
165-
$this->expectExceptionMessage('Service method specified in the definition of handler "customHandler" for topic "custo');
177+
$this->expectExceptionMessage(
178+
'Service method specified in the definition of handler "customHandler" for topic "custo'
179+
);
166180

167181
$this->getConfigInstance([__DIR__ . '/_files/communication_not_existing_handler_method.xml'])->getTopics();
168182
}
@@ -172,7 +186,9 @@ public function testGetTopicsExceptionInvalidHandler()
172186
public function testGetTopicsExceptionInvalidTopicNameInEnv()
173187
{
174188
$this->expectException(\LogicException::class);
175-
$this->expectExceptionMessage('Topic name "customerAdded" and attribute "name" = "customerCreated" must be equal');
189+
$this->expectExceptionMessage(
190+
'Topic name "customerAdded" and attribute "name" = "customerCreated" must be equal'
191+
);
176192

177193
$this->getConfigInstance(
178194
[__DIR__ . '/_files/valid_communication.xml'],
@@ -224,7 +240,9 @@ public function testGetTopicsExceptionTopicWithExcessiveKeysInEnv()
224240
public function testGetTopicsExceptionTopicWithNonMatchedNameInEnv()
225241
{
226242
$this->expectException(\LogicException::class);
227-
$this->expectExceptionMessage('Topic name "customerDeleted" and attribute "name" = "customerRemoved" must be equal');
243+
$this->expectExceptionMessage(
244+
'Topic name "customerDeleted" and attribute "name" = "customerRemoved" must be equal'
245+
);
228246

229247
$this->getConfigInstance(
230248
[__DIR__ . '/_files/valid_communication.xml'],
@@ -237,7 +255,9 @@ public function testGetTopicsExceptionTopicWithNonMatchedNameInEnv()
237255
public function testGetTopicsExceptionMultipleHandlersSynchronousModeInEnv()
238256
{
239257
$this->expectException(\LogicException::class);
240-
$this->expectExceptionMessage('Topic "customerDeleted" is configured for synchronous requests, that is why it must');
258+
$this->expectExceptionMessage(
259+
'Topic "customerDeleted" is configured for synchronous requests, that is why it must'
260+
);
241261

242262
$this->getConfigInstance(
243263
[__DIR__ . '/_files/valid_communication.xml'],
@@ -250,7 +270,9 @@ public function testGetTopicsExceptionMultipleHandlersSynchronousModeInEnv()
250270
public function testGetTopicsExceptionInvalidRequestSchemaInEnv()
251271
{
252272
$this->expectException(\LogicException::class);
253-
$this->expectExceptionMessage('Request schema definition for topic "customerCreated" should reference existing service');
273+
$this->expectExceptionMessage(
274+
'Request schema definition for topic "customerCreated" should reference existing service'
275+
);
254276

255277
$this->getConfigInstance(
256278
[__DIR__ . '/_files/valid_communication.xml'],
@@ -263,7 +285,9 @@ public function testGetTopicsExceptionInvalidRequestSchemaInEnv()
263285
public function testGetTopicsExceptionInvalidResponseSchemaInEnv()
264286
{
265287
$this->expectException(\LogicException::class);
266-
$this->expectExceptionMessage('Response schema definition for topic "customerCreated" should reference existing type o');
288+
$this->expectExceptionMessage(
289+
'Response schema definition for topic "customerCreated" should reference existing type o'
290+
);
267291

268292
$this->getConfigInstance(
269293
[__DIR__ . '/_files/valid_communication.xml'],
@@ -276,7 +300,9 @@ public function testGetTopicsExceptionInvalidResponseSchemaInEnv()
276300
public function testGetTopicsExceptionInvalidMethodInHandlerInEnv()
277301
{
278302
$this->expectException(\LogicException::class);
279-
$this->expectExceptionMessage('Service method specified in the definition of handler "customerCreatedFirst" for topic');
303+
$this->expectExceptionMessage(
304+
'Service method specified in the definition of handler "customerCreatedFirst" for topic'
305+
);
280306

281307
$this->getConfigInstance(
282308
[__DIR__ . '/_files/valid_communication.xml'],
@@ -289,7 +315,9 @@ public function testGetTopicsExceptionInvalidMethodInHandlerInEnv()
289315
public function testGetTopicsExceptionWithDisabledHandlerInEnv()
290316
{
291317
$this->expectException(\LogicException::class);
292-
$this->expectExceptionMessage('Disabled handler "default" for topic "customerCreated" cannot be added to the config fi');
318+
$this->expectExceptionMessage(
319+
'Disabled handler "default" for topic "customerCreated" cannot be added to the config fi'
320+
);
293321

294322
$this->getConfigInstance(
295323
[__DIR__ . '/_files/valid_communication.xml'],
@@ -302,7 +330,9 @@ public function testGetTopicsExceptionWithDisabledHandlerInEnv()
302330
public function testGetTopicsExceptionIncorrectRequestSchemaTypeInEnv()
303331
{
304332
$this->expectException(\LogicException::class);
305-
$this->expectExceptionMessage('Request schema type for topic "customerCreated" must be "object_interface" or "service_');
333+
$this->expectExceptionMessage(
334+
'Request schema type for topic "customerCreated" must be "object_interface" or "service_'
335+
);
306336

307337
$this->getConfigInstance(
308338
[__DIR__ . '/_files/valid_communication.xml'],
@@ -315,7 +345,9 @@ public function testGetTopicsExceptionIncorrectRequestSchemaTypeInEnv()
315345
public function testGetTopicsExceptionIsNotBooleanTypeOfIsSynchronousInEnv()
316346
{
317347
$this->expectException(\LogicException::class);
318-
$this->expectExceptionMessage('The attribute "is_synchronous" for topic "customerCreated" should have the value of the');
348+
$this->expectExceptionMessage(
349+
'The attribute "is_synchronous" for topic "customerCreated" should have the value of the'
350+
);
319351

320352
$this->getConfigInstance(
321353
[__DIR__ . '/_files/valid_communication.xml'],

0 commit comments

Comments
 (0)