PHP Class Crud\Test\TestCase\Listener\ApiListenerTest

Inheritance: extends Crud\TestSuite\TestCase
Afficher le fichier Open project: friendsofcake/crud

Méthodes publiques

Méthode Description
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

Method Details

dataCheckRequestMethods() public méthode

data provider for testCheckRequestMethods
public dataCheckRequestMethods ( ) : array
Résultat array

dataExceptionResponse() public méthode

Data provider for testExceptionResponse
public dataExceptionResponse ( ) : array
Résultat array

dataExpandPath() public méthode

Data provider for testExpandPath
public dataExpandPath ( ) : array
Résultat array

testBeforeHandle() public méthode

testBeforeHandle
public testBeforeHandle ( ) : void
Résultat void

testCheckRequestMethods() public méthode

testCheckRequestMethods
public testCheckRequestMethods ( $apiConfig, $exception, $requestMethods ) : void
Résultat void

testDefaultConfiguration() public méthode

Test default configuration
public testDefaultConfiguration ( ) : void
Résultat void

testEnsureData() public méthode

testEnsureData
public testEnsureData ( ) : void
Résultat void

testEnsureDataError() public méthode

testEnsureDataError
public testEnsureDataError ( ) : void
Résultat void

testEnsureDataRaw() public méthode

testEnsureDataRaw
public testEnsureDataRaw ( ) : void
Résultat void

testEnsureDataSubject() public méthode

testEnsureDataSubject
public testEnsureDataSubject ( ) : void
Résultat void

testEnsureSerializeAlreadySet() public méthode

testEnsureSerializeAlreadySet
public testEnsureSerializeAlreadySet ( ) : void
Résultat void

testEnsureSerializeWithViewVar() public méthode

testEnsureSerializeWithViewVar
public testEnsureSerializeWithViewVar ( ) : void
Résultat void

testEnsureSerializeWithViewVarChanged() public méthode

testEnsureSerializeWithViewVarChanged

testEnsureSerializeWithoutViewVar() public méthode

testEnsureSerializeWithoutViewVar

testEnsureSuccess() public méthode

testEnsureSuccess
public testEnsureSuccess ( ) : void
Résultat void

testEnsureSuccessAlreadySet() public méthode

testEnsureSuccessAlreadySet
public testEnsureSuccessAlreadySet ( ) : void
Résultat void

testExceptionResponse() public méthode

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
Résultat void

testExpandPath() public méthode

testExpandPath
public testExpandPath ( $subject, $path, $expected ) : void
Résultat void

testFlashMessageEnabled() public méthode

There are use cases where you want to enable flash messages.
public testFlashMessageEnabled ( ) : void
Résultat void

testFlashMessageSupressed() public méthode

The API listener should suppress flash messages if the request is "API"
public testFlashMessageSupressed ( ) : void
Résultat void

testImplementedEvents() public méthode

Test implementedEvents with API request
public testImplementedEvents ( ) : void
Résultat void

testImplementedEventsWithoutApi() public méthode

Test implementedEvents without API request
public testImplementedEventsWithoutApi ( ) : void
Résultat void

testInjectViewClasses() public méthode

testInjectViewClasses
public testInjectViewClasses ( ) : void
Résultat void

testResponse() public méthode

Test response method
public testResponse ( ) : void
Résultat void

testResponseWithExceptionConfig() public méthode

Test response method with exception config
public testResponseWithExceptionConfig ( ) : void
Résultat void

testSetup() public méthode

testSetup
public testSetup ( ) : void
Résultat void

testSetupDetectors() public méthode

testSetupDetectors
public testSetupDetectors ( ) : void
Résultat void

testSetupDetectorsIntigration() public méthode

testSetupDetectorsIntigration
public testSetupDetectorsIntigration ( ) : void
Résultat void

testViewClass() public méthode

Test that both set and get works
public testViewClass ( ) : void
Résultat void

testViewClassDefaults() public méthode

Test that the default viewClasses are as expected
public testViewClassDefaults ( ) : void
Résultat void