PHP Class Crud\TestCase\Action\BaseActionTest

Inheritance: extends Crud\TestSuite\TestCase
Mostrar archivo Open project: friendsofcake/crud

Public Methods

Method Description
setUp ( )
tearDown ( )
testBadMessageConfig ( ) testBadMessageConfig
testBadRequestMethodMessage ( ) : void testBadRequestMethodMessage
testDisable ( ) : void testDisable
testEmptyMessage ( ) testEmptyMessage
testEnable ( ) : void testEnable
testEnabledActionWorks ( ) : void Test that an enabled action will call _handle
testGenericHandle ( ) : void testGenericHandle
testGetSaveAllOptionsDefaults ( ) : void Test default saveAll options works when modified
testHandle ( ) : void testHandle
testHandleDisabled ( ) : void testHandleDisabled
testHandleException ( ) : void testHandleException
testImplementedEvents ( ) : void Test that we get the expected events
testInheritedSimpleMessage ( ) : void testInheritedSimpleMessage
testInvalidIdMessage ( ) : void testInvalidIdMessage
testOverrideAllDefaults ( ) : void Test that it's possible to override all configuration settings through the __constructor()
testOverridenSimpleMessage ( ) : void testOverridenSimpleMessage
testRecordNotFoundMessage ( ) : void testMessageNotFound
testSetFlash ( ) : void Test that setFlash triggers the correct methods
testSimpleMessage ( ) : void testSimpleMessage
testSimpleMessageWithPlaceholders ( ) : void testSimpleMessageWithPlaceholders
testUndefinedMessage ( ) testUndefinedMessage

Protected Methods

Method Description
_configureAction ( $action )

Method Details

_configureAction() protected method

protected _configureAction ( $action )

setUp() public method

public setUp ( )

tearDown() public method

public tearDown ( )

testBadMessageConfig() public method

testBadMessageConfig

testBadRequestMethodMessage() public method

testBadRequestMethodMessage
public testBadRequestMethodMessage ( ) : void
return void

testDisable() public method

Test that calling disable() on the action object disables the action
public testDisable ( ) : void
return void

testEmptyMessage() public method

testEmptyMessage
public testEmptyMessage ( )

testEnable() public method

Test that calling enable() on the action object enables the action
public testEnable ( ) : void
return void

testEnabledActionWorks() public method

Test that an enabled action will call _handle
public testEnabledActionWorks ( ) : void
return void

testGenericHandle() public method

Test that calling handle will invoke _handle when the requestType handler is not available
public testGenericHandle ( ) : void
return void

testGetSaveAllOptionsDefaults() public method

Test default saveAll options works when modified

testHandle() public method

Test that calling handle will invoke _handle when the action is enabbled
public testHandle ( ) : void
return void

testHandleDisabled() public method

Test that calling handle will not invoke _handle when the action is disabled
public testHandleDisabled ( ) : void
return void

testHandleException() public method

Test that calling handle will not invoke _handle when the action is disabled
public testHandleException ( ) : void
return void

testImplementedEvents() public method

Test that we get the expected events
public testImplementedEvents ( ) : void
return void

testInheritedSimpleMessage() public method

testInheritedSimpleMessage
public testInheritedSimpleMessage ( ) : void
return void

testInvalidIdMessage() public method

testInvalidIdMessage
public testInvalidIdMessage ( ) : void
return void

testOverrideAllDefaults() public method

Test that it's possible to override all configuration settings through the __constructor()
public testOverrideAllDefaults ( ) : void
return void

testOverridenSimpleMessage() public method

testOverridenSimpleMessage
public testOverridenSimpleMessage ( ) : void
return void

testRecordNotFoundMessage() public method

testMessageNotFound
public testRecordNotFoundMessage ( ) : void
return void

testSetFlash() public method

Test that setFlash triggers the correct methods
public testSetFlash ( ) : void
return void

testSimpleMessage() public method

testSimpleMessage
public testSimpleMessage ( ) : void
return void

testSimpleMessageWithPlaceholders() public method

testSimpleMessageWithPlaceholders

testUndefinedMessage() public method

testUndefinedMessage