-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix for #88 #129
Fix for #88 #129
Conversation
@pamil forgot to add |
58b9f67
to
7e13510
Compare
@pamil umh, I'm a little bit confused. That's the situation where it should not pass. Am I missing something? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey
To generate failed test you must provide some changes.
I changed temporary in tests/Behat/Context/TestContext.php
line 120
from
'test' => $this->getEnvironment() === 'test',
to
'test' => false
Because this problem exists when enviroment is set to another value than test
. Thats should be do in separate step or just provide as parameter in step.
@@ -131,3 +131,48 @@ Feature: Autowiring contexts | |||
""" | |||
When I run Behat | |||
Then it should pass | |||
|
|||
Scenario: Autowiring a context with test client | |||
Given a feature file containing: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Given a working Symfony application with SymfonyExtension configured
And a feature file containing
Because you must use CompilerPass from src/Bundle/DependencyInjection/FriendsOfBehatSymfonyExtensionExtension:process
.
@cv65kr why environment should be different than |
In previous version of this extension you have a possibility to run Behat tests with different environment then |
Umh, but when I run tests in a Symfony app (and so #88 issue arise), I suppose that environment value was/is |
Little weird, first of all try to set up |
@cv65kr check out now. |
I mean
in Let's try. If you change this value to false then test should failed. Maybe when APP_ENV is set to test this configuration is set up automatically. Also try debug |
I lost myself 😄 same with? |
What I've done is (practically) the same of
Isn't it? |
Right, that should be equals. |
@DonCallisto can you please update your branch in master - we need run GitHub Actions |
c765fc4
to
1c3d120
Compare
@Yozhef done |
@cv65kr tell me do you have any other comments? |
#88 (comment)