PHP 클래스 Crud\Test\TestCase\Listener\ApiListenerTest

상속: extends Crud\TestSuite\TestCase
파일 보기 프로젝트 열기: friendsofcake/crud

공개 메소드들

메소드 설명
dataCheckRequestMethods ( ) : array data provider for testCheckRequestMethods
dataExceptionResponse ( ) : array Data provider for testExceptionResponse
dataExpandPath ( ) : array Data provider for testExpandPath
testBeforeHandle ( ) : void testBeforeHandle
testCheckRequestMethods ( $apiConfig, $exception, $requestMethods ) : void testCheckRequestMethods
testDefaultConfiguration ( ) : void Test default configuration
testEnsureData ( ) : void testEnsureData
testEnsureDataError ( ) : void testEnsureDataError
testEnsureDataRaw ( ) : void testEnsureDataRaw
testEnsureDataSubject ( ) : void testEnsureDataSubject
testEnsureSerializeAlreadySet ( ) : void testEnsureSerializeAlreadySet
testEnsureSerializeWithViewVar ( ) : void testEnsureSerializeWithViewVar
testEnsureSerializeWithViewVarChanged ( ) : void testEnsureSerializeWithViewVarChanged
testEnsureSerializeWithoutViewVar ( ) : void testEnsureSerializeWithoutViewVar
testEnsureSuccess ( ) : void testEnsureSuccess
testEnsureSuccessAlreadySet ( ) : void testEnsureSuccessAlreadySet
testExceptionResponse ( array $apiConfig, string $exceptionClass, string $exceptionMessage, integer $exceptionCode, array $validationErrors = [] ) : void Test _exceptionResponse
testExpandPath ( $subject, $path, $expected ) : void testExpandPath
testFlashMessageEnabled ( ) : void testFlashMessageEnabled
testFlashMessageSupressed ( ) : void testFlashMessageSupressed
testImplementedEvents ( ) : void Test implementedEvents with API request
testImplementedEventsWithoutApi ( ) : void Test implementedEvents without API request
testInjectViewClasses ( ) : void testInjectViewClasses
testResponse ( ) : void Test response method
testResponseWithExceptionConfig ( ) : void Test response method with exception config
testSetup ( ) : void testSetup
testSetupDetectors ( ) : void testSetupDetectors
testSetupDetectorsIntigration ( ) : void testSetupDetectorsIntigration
testViewClass ( ) : void testViewClass
testViewClassDefaults ( ) : void testViewClassDefaults

메소드 상세

dataCheckRequestMethods() 공개 메소드

data provider for testCheckRequestMethods
public dataCheckRequestMethods ( ) : array
리턴 array

dataExceptionResponse() 공개 메소드

Data provider for testExceptionResponse
public dataExceptionResponse ( ) : array
리턴 array

dataExpandPath() 공개 메소드

Data provider for testExpandPath
public dataExpandPath ( ) : array
리턴 array

testBeforeHandle() 공개 메소드

testBeforeHandle
public testBeforeHandle ( ) : void
리턴 void

testCheckRequestMethods() 공개 메소드

testCheckRequestMethods
public testCheckRequestMethods ( $apiConfig, $exception, $requestMethods ) : void
리턴 void

testDefaultConfiguration() 공개 메소드

Test default configuration
public testDefaultConfiguration ( ) : void
리턴 void

testEnsureData() 공개 메소드

testEnsureData
public testEnsureData ( ) : void
리턴 void

testEnsureDataError() 공개 메소드

testEnsureDataError
public testEnsureDataError ( ) : void
리턴 void

testEnsureDataRaw() 공개 메소드

testEnsureDataRaw
public testEnsureDataRaw ( ) : void
리턴 void

testEnsureDataSubject() 공개 메소드

testEnsureDataSubject
public testEnsureDataSubject ( ) : void
리턴 void

testEnsureSerializeAlreadySet() 공개 메소드

testEnsureSerializeAlreadySet

testEnsureSerializeWithViewVar() 공개 메소드

testEnsureSerializeWithViewVar

testEnsureSerializeWithViewVarChanged() 공개 메소드

testEnsureSerializeWithViewVarChanged

testEnsureSerializeWithoutViewVar() 공개 메소드

testEnsureSerializeWithoutViewVar

testEnsureSuccess() 공개 메소드

testEnsureSuccess
public testEnsureSuccess ( ) : void
리턴 void

testEnsureSuccessAlreadySet() 공개 메소드

testEnsureSuccessAlreadySet
public testEnsureSuccessAlreadySet ( ) : void
리턴 void

testExceptionResponse() 공개 메소드

Test _exceptionResponse
public testExceptionResponse ( array $apiConfig, string $exceptionClass, string $exceptionMessage, integer $exceptionCode, array $validationErrors = [] ) : void
$apiConfig array
$exceptionClass string
$exceptionMessage string
$exceptionCode integer
$validationErrors array
리턴 void

testExpandPath() 공개 메소드

testExpandPath
public testExpandPath ( $subject, $path, $expected ) : void
리턴 void

testFlashMessageEnabled() 공개 메소드

There are use cases where you want to enable flash messages.
public testFlashMessageEnabled ( ) : void
리턴 void

testFlashMessageSupressed() 공개 메소드

The API listener should suppress flash messages if the request is "API"
public testFlashMessageSupressed ( ) : void
리턴 void

testImplementedEvents() 공개 메소드

Test implementedEvents with API request
public testImplementedEvents ( ) : void
리턴 void

testImplementedEventsWithoutApi() 공개 메소드

Test implementedEvents without API request

testInjectViewClasses() 공개 메소드

testInjectViewClasses
public testInjectViewClasses ( ) : void
리턴 void

testResponse() 공개 메소드

Test response method
public testResponse ( ) : void
리턴 void

testResponseWithExceptionConfig() 공개 메소드

Test response method with exception config

testSetup() 공개 메소드

testSetup
public testSetup ( ) : void
리턴 void

testSetupDetectors() 공개 메소드

testSetupDetectors
public testSetupDetectors ( ) : void
리턴 void

testSetupDetectorsIntigration() 공개 메소드

testSetupDetectorsIntigration

testViewClass() 공개 메소드

Test that both set and get works
public testViewClass ( ) : void
리턴 void

testViewClassDefaults() 공개 메소드

Test that the default viewClasses are as expected
public testViewClassDefaults ( ) : void
리턴 void