This repository has been archived by the owner on Apr 20, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 203
How to access RestContext from my custom context? #272
Comments
You can try it by using gatherContexts() method I am using it like this: |
I've tried this snippet but I still getting the |
Can you share your behat.yaml please? |
@tsantos84 have you tried something like that?
|
Hi guys. Sorry for the very long reply. I think my initial issue were with some symfony/behat/behatch version. I've just make a fresh install and now I can access Behatch context from my custom one. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I need to write a custom step on my custom context to add a header in the request. Is it possible? I've followed the official way to do so without success.
http://behat.org/en/latest/cookbooks/accessing_contexts_from_each_other.html
The error says that I can't call the private
getContext
method fromInitializedSymfonyExtensionEnvironment
class.My code:
Any idea?
The text was updated successfully, but these errors were encountered: