Property | Type | Description | |
---|---|---|---|
$fixtures | array | Fixtures | |
$mockDefaultEmail | |||
$traitClassName | string | Classname of the trait we are about to test | |
$traitMockMethods |
Method | Description | |
---|---|---|
setUp ( ) : void | SetUp and create Trait | |
tearDown ( ) : void | tearDown |
Method | Description | |
---|---|---|
_mockAuth ( ) : void | Mock the Auth component | |
_mockAuthLoggedIn ( $user = [] ) : void | Mock Auth and retur user id 1 | |
_mockDispatchEvent ( Cake\Event\Event $event = null ) : void | mock utility | |
_mockFlash ( ) : void | mock Flash Component | |
_mockRequestGet ( $withSession = false ) : void | mock request for GET | |
_mockRequestPost ( mixed $with = 'post' ) : void | mock Request for POST, is and allow methods | |
_mockSession ( $attributes ) : void | Mock session and mock session attributes |
protected _mockAuthLoggedIn ( $user = [] ) : void | ||
return | void |
protected _mockDispatchEvent ( Cake\Event\Event $event = null ) : void | ||
$event | Cake\Event\Event | event |
return | void |
protected _mockRequestGet ( $withSession = false ) : void | ||
return | void |
protected _mockRequestPost ( mixed $with = 'post' ) : void | ||
$with | mixed | used in with |
return | void |
protected _mockSession ( $attributes ) : void | ||
return | void |
public string $traitClassName | ||
return | string |