blumilksoftware / blt

Behat+Laravel toolbox. Still in progress.
https://packagist.org/packages/blumilksoftware/blt
MIT License
4 stars 0 forks source link

Extend middleware tools #19

Closed krzysztofrewak closed 3 months ago

krzysztofrewak commented 2 years ago

In Blumilk\BLT\Features\Traits\Middleware there are a few methods for middleware handling. They are all about disabling some or all middlewares.

We need at least to add a way to provide and enable custom middleware for specific scenarios. Maybe an option to test single middlewares would be nice too.

Feature: Test middlewares

  Scenario: Every request should be uniquely identified
    Given there is a "IdentifyRequest" middleware enabled
    When a user is requesting an application
    Then request object should have an UUID in "id" field