Support the ongoing development of Laravel.io →
Laravel Eloquent Dusk
Last updated 1 year ago.
0
moderator

The assertDatabaseHas is part of the trait InteractsWithDatabase ( see: https://github.com/laravel/framework/blob/6.x/src/Illuminate/F... )

That is added to the use Illuminate\Foundation\Testing\TestCase ( see: https://github.com/laravel/framework/blob/6.x/src/Illuminate/F... )

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

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

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

Your logo here?

Laravel.io

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

© 2024 Laravel.io - All rights reserved.