You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<?php
use Illuminate\Foundation\Testing\WithoutMiddleware;
use Illuminate\Foundation\Testing\DatabaseMigrations;
use Illuminate\Foundation\Testing\DatabaseTransactions;
use App\User;
use App\Test;
use OwenIt\Auditing\Log;
class ExampleTest extends TestCase
{
use DatabaseMigrations;
/**
* A basic functional test example.
*
* @return void
*/
public function testBasicExample()
{
$user = factory(User::class)->create();
$this->actingAs($user);
$test = factory(Test::class)->create();
dump(Log::all()->toArray());
$this->assertTrue(true);
}
}
The issue can be worked around by removing the eager loading of the user and owner properties from the the Log class.
Thanks.
The text was updated successfully, but these errors were encountered:
Hi there,
Using the package causing the following error in unit tests:
See my config in #55
The test I'm using:
The issue can be worked around by removing the eager loading of the
user
andowner
properties from the theLog
class.Thanks.
The text was updated successfully, but these errors were encountered: