PHP Class lithium\tests\cases\action\DispatcherTest

Inheritance: extends lithium\test\Unit
Datei anzeigen Open project: unionofrad/lithium

Public Methods

Method Description
process ( $request )
tearDown ( )
testApplyRulesControllerCasing ( )
testApplyRulesDotNamespacing ( )
testApplyRulesLibraryKeyNamespacing ( )
testApplyRulesNamespacingCollision ( )
testApplyRulesWithNamespacedController ( )
testAutoHandler ( )
testCall ( )
testControllerLookupFail ( )
testPluginControllerLookupFail ( )
testRun ( )
testRunWithAdminActionRule ( )
testRunWithContinuingRules ( )
testRunWithGenericActionRule ( )
testRunWithNoRouting ( )
testRunWithPostRoot ( ) Tests that POST requests to the / URL work as expected.
testRunWithSpecialRuleAsCallable ( )
testRunWithoutRules ( )

Method Details

process() public static method

public static process ( $request )

tearDown() public method

public tearDown ( )

testApplyRulesControllerCasing() public method

testApplyRulesDotNamespacing() public method

testApplyRulesLibraryKeyNamespacing() public method

testApplyRulesNamespacingCollision() public method

testApplyRulesWithNamespacedController() public method

testAutoHandler() public method

public testAutoHandler ( )

testCall() public method

public testCall ( )

testControllerLookupFail() public method

testPluginControllerLookupFail() public method

testRun() public method

public testRun ( )

testRunWithAdminActionRule() public method

testRunWithContinuingRules() public method

testRunWithGenericActionRule() public method

testRunWithNoRouting() public method

testRunWithPostRoot() public method

This test belongs to the issue that POST requests (like submitting forms) to the / URL don't work as expected, because they immediately get redirected to the same URL but as GET requests (with no data attached to it). It veryfies that the Lithium dispatcher works as expected and returns the correct controller/action combination.
public testRunWithPostRoot ( )

testRunWithSpecialRuleAsCallable() public method

testRunWithoutRules() public method

public testRunWithoutRules ( )