Laravel v5.6
Confirmation Name Changed
->assertDatabaseMissing(string $table, array $data, string $connection = null)
the opposite would be
->assertDatabaseHas(string $table, array $data, string $connection = null)
Previous versions of Laravel
There are two ways:
->notSeeInDatabase($table, array $data)
and
->missingFromDatabase($table, array $data)
One is just an alias for the other.
For a complete list of available testing methods, check out the features located at vendor/laravel/framework/src/Illuminate/Foundation/Testing
source share