@@ -38,10 +38,10 @@ public function getTestDetails(): \Generator
38
38
'use Symfony\Component\Webhook\Client\AbstractRequestParser; ' ,
39
39
file_get_contents ($ runner ->getPath ('src/Webhook/RemoteServiceRequestParser.php ' ))
40
40
);
41
- $ this ->assertFileExists ($ runner ->getPath ('src/RemoteEvent/RemoteServiceWebhookHandler .php ' ));
41
+ $ this ->assertFileExists ($ runner ->getPath ('src/RemoteEvent/RemoteServiceWebhookConsumer .php ' ));
42
42
$ this ->assertStringContainsString (
43
43
'#[AsRemoteEventConsumer( \'remote_service \')] ' ,
44
- file_get_contents ($ runner ->getPath ('src/RemoteEvent/RemoteServiceWebhookHandler .php ' )),
44
+ file_get_contents ($ runner ->getPath ('src/RemoteEvent/RemoteServiceWebhookConsumer .php ' )),
45
45
);
46
46
$ securityConfig = $ runner ->readYaml ('config/packages/webhook.yaml ' );
47
47
$ this ->assertEquals (
@@ -59,7 +59,7 @@ public function getTestDetails(): \Generator
59
59
->run (function (MakerTestRunner $ runner ) {
60
60
$ runner ->copy ('make-webhook/webhook.yaml ' , 'config/packages/webhook.yaml ' );
61
61
$ runner ->copy ('make-webhook/RemoteServiceRequestParser.php ' , 'src/Webhook/RemoteServiceRequestParser.php ' );
62
- $ runner ->copy ('make-webhook/RemoteServiceWebhookHandler .php ' , 'src/RemoteEvent/RemoteServiceWebhookHandler .php ' );
62
+ $ runner ->copy ('make-webhook/RemoteServiceWebhookConsumer .php ' , 'src/RemoteEvent/RemoteServiceWebhookConsumer .php ' );
63
63
$ output = $ runner ->runMaker ([
64
64
// webhook name
65
65
'another_remote_service ' ,
@@ -68,7 +68,7 @@ public function getTestDetails(): \Generator
68
68
]);
69
69
$ this ->assertStringContainsString ('created: ' , $ output );
70
70
$ this ->assertFileExists ($ runner ->getPath ('src/Webhook/AnotherRemoteServiceRequestParser.php ' ));
71
- $ this ->assertFileExists ($ runner ->getPath ('src/RemoteEvent/AnotherRemoteServiceWebhookHandler .php ' ));
71
+ $ this ->assertFileExists ($ runner ->getPath ('src/RemoteEvent/AnotherRemoteServiceWebhookConsumer .php ' ));
72
72
$ securityConfig = $ runner ->readYaml ('config/packages/webhook.yaml ' );
73
73
// original config should not be modified
74
74
$ this ->assertArrayHasKey ('remote_service ' , $ securityConfig ['framework ' ]['webhook ' ]['routing ' ]);
@@ -103,7 +103,7 @@ public function getTestDetails(): \Generator
103
103
]);
104
104
$ this ->assertStringContainsString ('created: ' , $ output );
105
105
$ this ->assertFileExists ($ runner ->getPath ('src/Webhook/RemoteServiceRequestParser.php ' ));
106
- $ this ->assertFileExists ($ runner ->getPath ('src/RemoteEvent/RemoteServiceWebhookHandler .php ' ));
106
+ $ this ->assertFileExists ($ runner ->getPath ('src/RemoteEvent/RemoteServiceWebhookConsumer .php ' ));
107
107
$ requestParserSource = file_get_contents ($ runner ->getPath ('src/Webhook/RemoteServiceRequestParser.php ' ));
108
108
$ this ->assertStringContainsString (
109
109
'use Symfony\Component\HttpFoundation\RequestMatcher\IsJsonRequestMatcher; ' ,
@@ -127,7 +127,7 @@ public function getTestDetails(): \Generator
127
127
]);
128
128
$ this ->assertStringContainsString ('created: ' , $ output );
129
129
$ this ->assertFileExists ($ runner ->getPath ('src/Webhook/RemoteServiceRequestParser.php ' ));
130
- $ this ->assertFileExists ($ runner ->getPath ('src/RemoteEvent/RemoteServiceWebhookHandler .php ' ));
130
+ $ this ->assertFileExists ($ runner ->getPath ('src/RemoteEvent/RemoteServiceWebhookConsumer .php ' ));
131
131
$ requestParserSource = file_get_contents ($ runner ->getPath ('src/Webhook/RemoteServiceRequestParser.php ' ));
132
132
$ this ->assertStringContainsString (
133
133
'use Symfony\Component\HttpFoundation\RequestMatcher\IsJsonRequestMatcher; ' ,
@@ -165,7 +165,7 @@ public function getTestDetails(): \Generator
165
165
]);
166
166
$ this ->assertStringContainsString ('created: ' , $ output );
167
167
$ this ->assertFileExists ($ runner ->getPath ('src/Webhook/RemoteServiceRequestParser.php ' ));
168
- $ this ->assertFileExists ($ runner ->getPath ('src/RemoteEvent/RemoteServiceWebhookHandler .php ' ));
168
+ $ this ->assertFileExists ($ runner ->getPath ('src/RemoteEvent/RemoteServiceWebhookConsumer .php ' ));
169
169
$ requestParserSource = file_get_contents ($ runner ->getPath ('src/Webhook/RemoteServiceRequestParser.php ' ));
170
170
$ this ->assertStringContainsString (
171
171
'use Symfony\Component\HttpFoundation\RequestMatcher\IsJsonRequestMatcher; ' ,
0 commit comments