PHP Class CakeDC\Users\Test\TestCase\Controller\Traits\BaseTraitTest

Inheritance: extends Cake\TestSuite\TestCase
Datei anzeigen Open project: cakedc/users Class Usage Examples

Public Properties

Property Type Description
$fixtures array Fixtures
$mockDefaultEmail
$traitClassName string Classname of the trait we are about to test
$traitMockMethods

Public Methods

Method Description
setUp ( ) : void SetUp and create Trait
tearDown ( ) : void tearDown

Protected Methods

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

Method Details

_mockAuth() protected method

Mock the Auth component
protected _mockAuth ( ) : void
return void

_mockAuthLoggedIn() protected method

Mock Auth and retur user id 1
protected _mockAuthLoggedIn ( $user = [] ) : void
return void

_mockDispatchEvent() protected method

mock utility
protected _mockDispatchEvent ( Cake\Event\Event $event = null ) : void
$event Cake\Event\Event event
return void

_mockFlash() protected method

mock Flash Component
protected _mockFlash ( ) : void
return void

_mockRequestGet() protected method

mock request for GET
protected _mockRequestGet ( $withSession = false ) : void
return void

_mockRequestPost() protected method

mock Request for POST, is and allow methods
protected _mockRequestPost ( mixed $with = 'post' ) : void
$with mixed used in with
return void

_mockSession() protected method

Mock session and mock session attributes
protected _mockSession ( $attributes ) : void
return void

setUp() public method

SetUp and create Trait
public setUp ( ) : void
return void

tearDown() public method

tearDown
public tearDown ( ) : void
return void

Property Details

$fixtures public_oe property

Fixtures
public array $fixtures
return array

$mockDefaultEmail public_oe property

public $mockDefaultEmail

$traitClassName public_oe property

Classname of the trait we are about to test
public string $traitClassName
return string

$traitMockMethods public_oe property

public $traitMockMethods