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.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community