Skip to content

Commit

Permalink
The tests doesn't interact with messenger anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
loevgaard committed Dec 4, 2024
1 parent 1b8f653 commit 5b4a9ce
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions tests/Functional/Controller/HandleWebhookActionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

namespace Tests\Setono\SyliusPeakPlugin\Functional\Controller;

use Setono\SyliusPeakPlugin\Message\Command\UpdateInventory;
use Setono\SyliusPeakPlugin\Model\OrderInterface;
use Sylius\Component\Core\Model\OrderItemInterface;
use Sylius\Component\Core\Model\ProductVariantInterface;
Expand All @@ -17,12 +16,9 @@
use Sylius\Component\Resource\Factory\FactoryInterface;
use Symfony\Bundle\FrameworkBundle\KernelBrowser;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
use Zenstruck\Messenger\Test\InteractsWithMessenger;

final class HandleWebhookActionTest extends WebTestCase
{
use InteractsWithMessenger;

private static KernelBrowser $client;

protected function setUp(): void
Expand Down Expand Up @@ -50,12 +46,6 @@ public function it_handles_stock_adjustments(): void
);

self::assertResponseStatusCodeSame(204);

/** @var list<UpdateInventory> $messages */
$messages = $this->transport('async')->queue()->messages(UpdateInventory::class);
self::assertCount(1, $messages);

self::assertSame($this->getProductVariant('Everyday_white_basic_T_Shirt-variant-0')->getId(), $messages[0]->productVariant);
}

/**
Expand Down

0 comments on commit 5b4a9ce

Please sign in to comment.