Documentation

MockUser extends UserProvider

Table of Contents

$user
$user_reflection
$gates
logged_in() mixed
can() mixed
test() mixed
__construct() mixed
getUser() BaseUser
logged_in() mixed
getName() mixed
getEmail() mixed
can() mixed
gate() mixed
test() mixed

Properties

Methods

logged_in()

public logged_in( ) : mixed
Return values
mixed

can()

public can( [ $ability : mixed = '*' ] ) : mixed
Parameters
$ability : mixed = '*'
Return values
mixed

__construct()

public __construct( ) : mixed
Return values
mixed

logged_in()

public logged_in( ) : mixed
Return values
mixed

getEmail()

public getEmail( ) : mixed
Return values
mixed

can()

public can( [ $ability : mixed = '*' ] ) : mixed
Parameters
$ability : mixed = '*'
Return values
mixed

gate()

public static gate( $handle : mixed , $callback : Closure ) : mixed
Parameters
$handle : mixed
$callback : Closure
Return values
mixed

Search results