Skip to content

Latest commit

 

History

History
56 lines (35 loc) · 1.03 KB

File metadata and controls

56 lines (35 loc) · 1.03 KB
layout page
title Codeception - Documentation

Effect is opposite to ->seeInDatabase

Checks if there is no record with such column values in database. Provide table name and column values.

Example:

{% highlight php %}

seeInDatabase('users', array('name' => 'Davert', 'email' => 'davert * mail.com')); {% endhighlight %} Will generate: {% highlight yaml %} sql SELECT COUNT(*) FROM `users` WHERE `name` = 'Davert' AND `email` = 'davert * mail.com' {% endhighlight %} Fails if such user was found. * param $table * param array $criteria Checks if a row with given column values exists. Provide table name and column values. Example: {% highlight php %} seeInDatabase('users', array('name' => 'Davert', 'email' => 'davert * mail.com')); {% endhighlight %} Will generate: {% highlight yaml %} sql SELECT COUNT(*) FROM `users` WHERE `name` = 'Davert' AND `email` = 'davert * mail.com' {% endhighlight %} Fails if no such user found. * param $table * param array $criteria