PHP Class Codeception\Module\ExtendedDb

Inheritance: extends Codeception\Module\Db
Afficher le fichier Open project: lucatume/wp-browser Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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

haveOrUpdateInDatabase() public méthode

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.
Résultat void