Skip to content
Advertisement

Using logical or in seeInDatabase

How can I implement a logic ‘or’ operator in Codeception’s seeInDatabase method?.

For example: the methods syntax is

JavaScript

Which generates this query

JavaScript

How can I generate the following query?

JavaScript

Advertisement

Answer

you can try this-

JavaScript

Or You can do this split into some simple steps. First get the records-

JavaScript

then test-

JavaScript

For better understanding, you can see this.

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement