The method withAccessToken() does not seem to exist on object<Illuminate\Contracts\Auth\Authenticatable>.
This check looks for calls to methods that do not seem to exist on a given type.
It looks for the method on the type itself as well as in inherited classes or
implemented interfaces.
This is most likely a typographical error or the method has been renamed.
Loading history...
38
39
7
$guard = AuthConfigHelper::getUserGuard($user);
40
41
7
app('auth')->guard($guard)->setUser($user);
42
43
7
app('auth')->shouldUse($guard);
44
7
}
45
46
/**
47
* If running unit test and try authenticate an user with actingAs($user)
48
* check the guards on request to authenticate or not the user.
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.