trait InteractsWithDatabase (View source)
$this | assertDatabaseHas(string $table, array $data, string|null $connection = null) Assert that a given where condition exists in the database. | |
$this | assertDatabaseMissing(string $table, array $data, string|null $connection = null) Assert that a given where condition does not exist in the database. | |
$this | assertSoftDeleted(string|Model $table, array $data = [], string|null $connection = null) Assert the given record has been deleted. | |
Connection | getConnection(string|null $connection = null) Get the database connection. | |
$this | seed(array|string $class = 'DatabaseSeeder') Seed a given database connection. |
Assert that a given where condition exists in the database.
Assert that a given where condition does not exist in the database.
Assert the given record has been deleted.
Get the database connection.
Seed a given database connection.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.8/Illuminate/Foundation/Testing/Concerns/InteractsWithDatabase.html