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

The assertDatabaseHas is part of the trait InteractsWithDatabase ( see: https://github.com/laravel/framework/blob/6.x/src/Illuminate/Foundation/Testing/Concerns/InteractsWithDatabase.php#L22-L29 )

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

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.