Skip to content

Unittest does not work when model Auditable #854

Answered by erikn69
aozen asked this question in Q&A
Discussion options

You must be logged in to vote

Did you try adding on TestCase class

/**
 * @param  \Illuminate\Foundation\Application  $app
 * @return array
 */
protected function getPackageProviders($app)
{
    return [
        \OwenIt\Auditing\AuditingServiceProvider::class,
    ];
}

lluminate/Foundation/Application.php#runningInConsole()

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by parallels999
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #840 on August 28, 2023 22:49.