FakeProvider
class FakeProvider implements Provider
Traits
Properties
| protected Provider|null | $provider | The original provider instance. |
Methods
Forward a method call to the given object.
Forward a method call to the given object, returning $this if the forwarded call returned itself.
Throw a bad method call exception for the given method.
Create a new fake provider instance.
Redirect the user to the authentication page for the provider.
Handle calls to methods that are not available on the fake provider.
Details
in
ForwardsCalls at line 22
protected mixed
forwardCallTo(mixed $object, string $method, array $parameters)
Forward a method call to the given object.
in
ForwardsCalls at line 52
protected mixed
forwardDecoratedCallTo(mixed $object, string $method, array $parameters)
Forward a method call to the given object, returning $this if the forwarded call returned itself.
in
ForwardsCalls at line 66
static protected never
throwBadMethodCallException(string $method)
Throw a bad method call exception for the given method.
at line 25
__construct(string $driver, Closure $resolver, User|Closure|null $user = null)
Create a new fake provider instance.
at line 35
RedirectResponse
redirect()
Redirect the user to the authentication page for the provider.
at line 43
User
user()
Get the User instance for the authenticated user.
at line 55
Provider
provider()
Get the original provider instance.
at line 67
mixed
__call(string $method, array $parameters)
Handle calls to methods that are not available on the fake provider.