MockUserProvider extends UserProvider
Table of Contents
$user | ||
---|---|---|
$user_reflection | ||
$gates | ||
__construct() | mixed | |
logged_in() | mixed | |
can() | mixed | |
test() | mixed | |
getUser() | BaseUser | |
__construct() | mixed | |
getUser() | BaseUser | |
logged_in() | mixed | |
getName() | mixed | |
getEmail() | mixed | |
can() | mixed | |
gate() | mixed | |
test() | mixed |
Properties
$user
protected
mixed
$user
$user_reflection
protected
mixed
$user_reflection
$gates
public
static mixed
$gates
= []
Methods
__construct()
public
__construct(
)
: mixed
Return values
mixedlogged_in()
public
logged_in(
)
: mixed
Return values
mixedcan()
public
can(
[ $ability :
mixed
= '*' ]
)
: mixed
Parameters
- $ability : mixed = '*'
Return values
mixedtest()
public
static test(
$framework :
Framework
)
: mixed
Parameters
- $framework : Framework
Return values
mixedgetUser()
public
getUser(
)
: BaseUser
Return values
BaseUser__construct()
public
__construct(
)
: mixed
Return values
mixedgetUser()
public
abstract getUser(
)
: BaseUser
Return values
BaseUserlogged_in()
public
logged_in(
)
: mixed
Return values
mixedgetName()
public
getName(
)
: mixed
Return values
mixedgetEmail()
public
getEmail(
)
: mixed
Return values
mixedcan()
public
can(
[ $ability :
mixed
= '*' ]
)
: mixed
Parameters
- $ability : mixed = '*'
Return values
mixedgate()
public
static gate(
$handle :
mixed
, $callback :
Closure
)
: mixed
Parameters
- $handle : mixed
- $callback : Closure
Return values
mixedtest()
public
static test(
$framework :
Framework
)
: mixed
Parameters
- $framework : Framework