File tree 1 file changed +9
-0
lines changed
src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection
1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 83
83
use Symfony \Component \Validator \Validation ;
84
84
use Symfony \Component \Validator \Validator \ValidatorInterface ;
85
85
use Symfony \Component \Webhook \Client \RequestParser ;
86
+ use Symfony \Component \Webhook \Controller \WebhookController ;
86
87
use Symfony \Component \Workflow ;
87
88
use Symfony \Component \Workflow \Exception \InvalidDefinitionException ;
88
89
use Symfony \Component \Workflow \Metadata \InMemoryMetadataStore ;
@@ -2279,6 +2280,10 @@ public function testNotifierWithSpecificMessageBus()
2279
2280
2280
2281
public function testWebhook ()
2281
2282
{
2283
+ if (!class_exists (WebhookController::class)) {
2284
+ $ this ->markTestSkipped ('Webhook not available. ' );
2285
+ }
2286
+
2282
2287
$ container = $ this ->createContainerFromFile ('webhook ' );
2283
2288
2284
2289
$ this ->assertTrue ($ container ->hasAlias (RequestParser::class));
@@ -2291,6 +2296,10 @@ public function testWebhook()
2291
2296
2292
2297
public function testWebhookWithoutSerializer ()
2293
2298
{
2299
+ if (!class_exists (WebhookController::class)) {
2300
+ $ this ->markTestSkipped ('Webhook not available. ' );
2301
+ }
2302
+
2294
2303
$ container = $ this ->createContainerFromFile ('webhook_without_serializer ' );
2295
2304
2296
2305
$ this ->assertFalse ($ container ->getDefinition ('webhook.transport ' )->hasErrors ());
You can’t perform that action at this time.
0 commit comments