Skip to content

Commit c33ba39

Browse files
committed
fix tests
1 parent 84b7358 commit c33ba39

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/FrameworkExtensionTestCase.php

+9
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@
8383
use Symfony\Component\Validator\Validation;
8484
use Symfony\Component\Validator\Validator\ValidatorInterface;
8585
use Symfony\Component\Webhook\Client\RequestParser;
86+
use Symfony\Component\Webhook\Controller\WebhookController;
8687
use Symfony\Component\Workflow;
8788
use Symfony\Component\Workflow\Exception\InvalidDefinitionException;
8889
use Symfony\Component\Workflow\Metadata\InMemoryMetadataStore;
@@ -2279,6 +2280,10 @@ public function testNotifierWithSpecificMessageBus()
22792280

22802281
public function testWebhook()
22812282
{
2283+
if (!class_exists(WebhookController::class)) {
2284+
$this->markTestSkipped('Webhook not available.');
2285+
}
2286+
22822287
$container = $this->createContainerFromFile('webhook');
22832288

22842289
$this->assertTrue($container->hasAlias(RequestParser::class));
@@ -2291,6 +2296,10 @@ public function testWebhook()
22912296

22922297
public function testWebhookWithoutSerializer()
22932298
{
2299+
if (!class_exists(WebhookController::class)) {
2300+
$this->markTestSkipped('Webhook not available.');
2301+
}
2302+
22942303
$container = $this->createContainerFromFile('webhook_without_serializer');
22952304

22962305
$this->assertFalse($container->getDefinition('webhook.transport')->hasErrors());

0 commit comments

Comments
 (0)