diff --git a/src/Codeception/Lib/Interfaces/Db.php b/src/Codeception/Lib/Interfaces/Db.php index 525de129..0407c4f8 100644 --- a/src/Codeception/Lib/Interfaces/Db.php +++ b/src/Codeception/Lib/Interfaces/Db.php @@ -56,7 +56,7 @@ public function dontSeeInDatabase(string $table, array $criteria = []): void; * * ``` php * grabFromDatabase('users', 'email', array('name' => 'Davert')); + * $mail = $I->grabFromDatabase('users', 'email', ['name' => 'Davert']); * ``` * Comparison expressions can be used as well: * diff --git a/src/Codeception/Module/Db.php b/src/Codeception/Module/Db.php index a27299f2..699e5d3b 100644 --- a/src/Codeception/Module/Db.php +++ b/src/Codeception/Module/Db.php @@ -777,7 +777,7 @@ protected function loadDumpUsingDriver(string $databaseKey): void * * ```php * haveInDatabase('users', array('name' => 'miles', 'email' => 'miles@davis.com')); + * $I->haveInDatabase('users', ['name' => 'miles', 'email' => 'miles@davis.com']); * ``` */ public function haveInDatabase(string $table, array $data): int @@ -930,7 +930,7 @@ protected function proceedSeeInDatabase(string $table, string $column, array $cr * * ``` php * grabColumnFromDatabase('users', 'email', array('name' => 'RebOOter')); + * $mails = $I->grabColumnFromDatabase('users', 'email', ['name' => 'RebOOter']); * ``` */ public function grabColumnFromDatabase(string $table, string $column, array $criteria = []): array @@ -950,7 +950,7 @@ public function grabColumnFromDatabase(string $table, string $column, array $cri * * ``` php * grabFromDatabase('users', 'email', array('name' => 'Davert')); + * $mail = $I->grabFromDatabase('users', 'email', ['name' => 'Davert']); * ``` * Comparison expressions can be used as well: * @@ -976,7 +976,7 @@ public function grabFromDatabase(string $table, string $column, array $criteria * * ``` php * grabEntryFromDatabase('users', array('name' => 'Davert')); + * $mail = $I->grabEntryFromDatabase('users', ['name' => 'Davert']); * ``` * Comparison expressions can be used as well: * @@ -1014,7 +1014,7 @@ public function grabEntryFromDatabase(string $table, array $criteria = []): arra * * ``` php * grabEntriesFromDatabase('users', array('name' => 'Davert')); + * $mail = $I->grabEntriesFromDatabase('users', ['name' => 'Davert']); * ``` * Comparison expressions can be used as well: * @@ -1057,7 +1057,7 @@ public function grabNumRecords(string $table, array $criteria = []): int * * ```php * updateInDatabase('users', array('isAdmin' => true), array('email' => 'miles@davis.com')); + * $I->updateInDatabase('users', ['isAdmin' => true], ['email' => 'miles@davis.com']); * ``` */ public function updateInDatabase(string $table, array $data, array $criteria = []): void