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
Does the if function work in codepcetion ? #4793
Comments
Using |
Okay that does make sense. EDIT: The Problem is, One day the Room may be taken and one day the Room may not be taken. |
Don't run tests on live database. |
...and don't use IFs inside tests. Tests should be predictable. |
I am a bit confused, to understand why i will explain the problem im having.
Problem
Users enters a number, then there is a 'check' method to see if the number ( in this case room ) is available.
I made a simple if function but codeception just stops at the condition.
After the if condition, which results in true, it should chose another floor and pick another room to check if that is available.
`$I->wantTo('Pick a available room');
Shell output with -vvv
The text was updated successfully, but these errors were encountered: