Skip to content

MacPaw/behat-messenger-context

Repository files navigation

Behat Messenger Context Bundle

Version Build Status Code Coverage
master CI Coverage Status
develop CI Coverage Status

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.