Do you use SoftDeletes on your model/table? If that is the case you need to add 'deleted_at' => null to the validation.
$this->assertDatabaseMissing('deposito',['id_deposito'=> $deposit->id_deposito, 'deleted_at' => null]);
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community