PHP Class Codeception\Module\ExtendedDb

Inheritance: extends Codeception\Module\Db
Show file Open project: lucatume/wp-browser Class Usage Examples

Public Methods

Method Description
dontHaveInDatabase ( string $table, array $criteria ) : void Deletes a database entry.
haveOrUpdateInDatabase ( string $table, array $data ) : void Inserts or updates a database entry on duplicate key.

Method Details

dontHaveInDatabase() public method

Deletes a database entry.
public dontHaveInDatabase ( string $table, array $criteria ) : void
$table string The table name.
$criteria array
return void

haveOrUpdateInDatabase() public method

Inserts or updates a database entry on duplicate key.
public haveOrUpdateInDatabase ( string $table, array $data ) : void
$table string The table name.
$data array An associative array of the column names and values to insert.
return void