How can I implement a logic ‘or’ operator in Codeception’s seeInDatabase method?. For example: the methods syntax is Which generates this query How can I generate the following query? Answer you can try this- Or You can do this split into some simple steps. First get the records- then test- For better understanding, you can see this.
Tag: codeception
How can I run only one test from a suite?
I have this test class below, and I want to run only one test from it, for example the “aboutPage”. Any ideas how? This is how I run only this file: But now I want to run only one test from the file. Answer You simply append a colon and the function name, like this: or a shorter version: (Notice
Set Expected Exception in Codeception Functional Cept
I want to do something like: In a functional cept. Any chance to do so? Above code will work in isolation but if I run codecept run, the tests get stuck once the test with the expected exception is complete. Here’s my setup: YML: Answer I think this is a known problem with the Laravel 4 module for codeception, not
Printing debug output to console in Codeception
Very thick question, but is there any way to print your own debug messages to the console in Codeception? I mean messages that have nothing to do with assertions, purely for debugging the tests themselves (e.g. like you would var_dump() a variable in any regular PHP website) I have already tried var_dump(), echo and print but to no avail. Using