macpaw/behat-messenger-context

Behat Context for testing Symfony Messenger component

Installs: 115 053

Dependents: 0

Suggesters: 0

Security: 0

Stars: 15

Watchers: 8

Forks: 2

Open Issues: 1

Type:symfony-bundle

v3.0.1 2024-01-11 15:21 UTC

README

This repository provides custom Behat step definitions for working with Symfony Messenger transports. It includes functionality for checking messages in transports, validating them against expected JSON structures, and working with variable fields.

Installation

To install the MessengerContext and integrate it with your Behat setup, follow the instructions provided in the Installation Guide.

Available Features

Check a Specific Message in a Transport

You can verify if a specific message exists in a given transport.

Check All Messages in a Transport

Verify if all messages in a given transport match the expected JSON structure.

Check Messages with Regular Expressions

You can use regular expressions to validate messages that contain dynamic or variable data.

Verify Message Count in a Transport

Ensure that a specific number of messages exist in a given transport.