PHP 클래스 CakeDC\Users\Test\TestCase\Controller\Traits\BaseTraitTest

상속: extends Cake\TestSuite\TestCase
파일 보기 프로젝트 열기: cakedc/users 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$fixtures array Fixtures
$mockDefaultEmail
$traitClassName string Classname of the trait we are about to test
$traitMockMethods

공개 메소드들

메소드 설명
setUp ( ) : void SetUp and create Trait
tearDown ( ) : void tearDown

보호된 메소드들

메소드 설명
_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

메소드 상세

_mockAuth() 보호된 메소드

Mock the Auth component
protected _mockAuth ( ) : void
리턴 void

_mockAuthLoggedIn() 보호된 메소드

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

_mockDispatchEvent() 보호된 메소드

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

_mockFlash() 보호된 메소드

mock Flash Component
protected _mockFlash ( ) : void
리턴 void

_mockRequestGet() 보호된 메소드

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

_mockRequestPost() 보호된 메소드

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

_mockSession() 보호된 메소드

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

setUp() 공개 메소드

SetUp and create Trait
public setUp ( ) : void
리턴 void

tearDown() 공개 메소드

tearDown
public tearDown ( ) : void
리턴 void

프로퍼티 상세

$fixtures 공개적으로 프로퍼티

Fixtures
public array $fixtures
리턴 array

$mockDefaultEmail 공개적으로 프로퍼티

public $mockDefaultEmail

$traitClassName 공개적으로 프로퍼티

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

$traitMockMethods 공개적으로 프로퍼티

public $traitMockMethods