-
Notifications
You must be signed in to change notification settings - Fork 25
Adding dontSeeInSession()
#64
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
Conversation
`seeInSession()` was already there, but the opposite was missing. I omitted the `$value` parameter for this reason: If `$attribute` is *not* in the session, it doesn't make much sense to do an additional check about its (inexistent) value. Or does it? Tests are missing, but I don't know how to do that :-(
Hey @ThomasLandauer Thanks!
Clic to see answer.Regarding this, i do think that it would make sense. This function actually does two things in its affirmative version: check attributes and check values. Perhaps what i want to assert is that there is no specific value in a session attribute. What is the same, it does not matter to me if the attribute exists or not, but if it does exist i want the test to fail if it contains the value that i specify as the second parameter in 'dontSeeInSession'.
Clic to see answer.This should be fixed. My idea when re-writing the module's test project and adding tests is that from the moment that that can be released, anyone who wants to include new functions (including me) should also contribute the corresponding tests. Following that order of ideas, the process for adding tests would include fork the test project, patching the composer.json so that your module fork is downloaded instead of the official version of the module, and modifying the SymfonyModuleCest.php file by adding the corresponding test. |
|
Nop.
|
Adding `$value`
Well, you (sort of) convinced me in this case - I added the However, I just suggested to deprecate |
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.
I clicked "Start a review" - which probably wasn't the right thing to do in this case...
Didn't you leave a second line comment?? It's gone now... :-( |
@ThomasLandauer don't worry and thanks you. |
seeInSession()
was already there, but the opposite was missing.I omitted the
$value
parameter for this reason: If$attribute
is not in the session, it doesn't make much sense to do an additional check about its (inexistent) value. Or does it?Tests are missing, but I don't know how to do that :-(