You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running API tests via Codeception. All works nicely except middleware is not run.
I can enable filters using $I->haveEnabledFilters() but this doesn't run middleware.
The service provider that registers the middleware is called, but the middleware itself is not used or run. I have some reasonably complicated, potentially flaky middleware so I'd like to run tests against them.
I had a similar problem and I figured out, the stacked http kernel (which adds the middleware functionality) is not being used. Solution is to update the Laravel4 Connector so that it includes the middleware (see my pull request)
This may be an edge case but:
Running API tests via Codeception. All works nicely except middleware is not run.
I can enable filters using $I->haveEnabledFilters() but this doesn't run middleware.
The service provider that registers the middleware is called, but the middleware itself is not used or run. I have some reasonably complicated, potentially flaky middleware so I'd like to run tests against them.
Set up:
_bootstrap.php:
api.suite.yml
Service provider:
The text was updated successfully, but these errors were encountered: