Support the ongoing development of →
Laravel Eloquent Dusk
Last updated 10 months ago.

The assertDatabaseHas is part of the trait InteractsWithDatabase ( see: )

That is added to the use Illuminate\Foundation\Testing\TestCase ( see: )

If you let your DatabaseTest extend Illuminate\Foundation\Testing\TestCase instead of PHPUnit\Framework\TestCase you got this assertions.


Sign in to participate in this thread!

Full Stack Europe

Your banner here too?


We'd like to thank these amazing companies for supporting us

Your logo here?

The Laravel portal for problem solving, knowledge sharing and community building.

© 2023 - All rights reserved.