Open Journal Systems  3.3.0
PKPComponentRouterTest Class Reference
Inheritance diagram for PKPComponentRouterTest:
PKPRouterTestCase PKPTestCase

Public Member Functions

 testGetRequestedComponentWithPathinfo ()
 
 testGetRequestedComponentWithPathinfoAndMalformedComponentString ()
 
 testGetRequestedComponentWithPathinfoDisabled ()
 
 testGetRequestedOpWithPathinfo ()
 
 testGetRequestedOpWithPathinfoAndMalformedOpString ()
 
 testGetRequestedOpWithPathinfoDisabled ()
 
 testGetRequestedOpWithPathinfoDisabledAndMissingComponent ()
 
 testRoute ()
 
 testSupports ()
 
 testSupportsWithPathinfoSuccessful ()
 
 testSupportsWithPathinfoUnsuccessfulComponentFileDoesNotExist ()
 
 testSupportsWithPathinfoUnsuccessfulNoComponentNoMarker ()
 
 testSupportsWithPathinfoUnsuccessfulNoComponentNotEnoughPathElements ()
 
 testUrlWithoutPathinfo ()
 
 testUrlWithoutPathinfoAndOverriddenBaseUrl ()
 
 testUrlWithoutPathinfoAndSecondContextObjectIsNull ()
 
 testUrlWithPathinfo ()
 
 testUrlWithPathinfoAndOverriddenBaseUrl ()
 
 testUrlWithPathinfoAndSecondContextObjectIsNull ()
 
- Public Member Functions inherited from PKPRouterTestCase
 testGetContext ()
 
 testGetContextForIndex ()
 
 testGetIndexUrl ()
 
 testGetIndexUrlRestful ()
 
 testGetRequestedContextPathWithEmptyContextParameters ()
 
 testGetRequestedContextPathWithEmptyPathInfo ()
 
 testGetRequestedContextPathWithFullContextParameters ()
 
 testGetRequestedContextPathWithFullPathInfo ()
 
 testGetRequestedContextPathWithInvalidLevel ()
 
 testGetRequestedContextPathWithInvalidPathInfo ()
 
 testGetRequestedContextPathWithPartialContextParameters ()
 
 testGetRequestedContextPathWithPartialPathInfo ()
 
 testGetSetApplication ()
 
 testGetSetDispatcher ()
 
 testIsCacheable ()
 
- Public Member Functions inherited from PKPTestCase
 getActualOutput ()
 

Protected Member Functions

 setUp ()
 
- Protected Member Functions inherited from PKPRouterTestCase
 _setUpMockDAOs ($firstContextPath='current-context1', $secondContextPath='current-context2', $firstContextIsNull=false, $secondContextIsNull=false)
 
 _setUpMockEnvironment ($pathInfoEnabled=self::PATHINFO_ENABLED, $contextDepth=2, $contextList=array('firstContext', 'secondContext'))
 
 tearDown ()
 
- Protected Member Functions inherited from PKPTestCase
 getMockedDAOs ()
 
 getMockedRegistryKeys ()
 
 mockRequest ($path='index/test-page/test-op', $userId=null)
 
 setTestConfiguration ($config, $configPath='config')
 

Additional Inherited Members

- Data Fields inherited from PKPRouterTestCase
 $request
 
const PATHINFO_DISABLED = false
 
const PATHINFO_ENABLED = true
 
- Data Fields inherited from PKPTestCase
 $mockedRegistryKeys = array()
 
 $registryBackup = array()
 
- Protected Attributes inherited from PKPRouterTestCase
 $router
 

Detailed Description

Tests for the PKPComponentRouter class.

@backupGlobals enabled

See also
PKPComponentRouter

Definition at line 25 of file PKPComponentRouterTest.php.

Member Function Documentation

◆ setUp()

PKPComponentRouterTest::setUp ( )
protected

Reimplemented from PKPRouterTestCase.

Definition at line 26 of file PKPComponentRouterTest.php.

◆ testGetRequestedComponentWithPathinfo()

◆ testGetRequestedComponentWithPathinfoAndMalformedComponentString()

◆ testGetRequestedComponentWithPathinfoDisabled()

◆ testGetRequestedOpWithPathinfo()

◆ testGetRequestedOpWithPathinfoAndMalformedOpString()

◆ testGetRequestedOpWithPathinfoDisabled()

◆ testGetRequestedOpWithPathinfoDisabledAndMissingComponent()

◆ testRoute()

◆ testSupports()

PKPComponentRouterTest::testSupports ( )
See also
PKPRouter::supports

Reimplemented from PKPRouterTestCase.

Definition at line 31 of file PKPComponentRouterTest.php.

◆ testSupportsWithPathinfoSuccessful()

◆ testSupportsWithPathinfoUnsuccessfulComponentFileDoesNotExist()

◆ testSupportsWithPathinfoUnsuccessfulNoComponentNoMarker()

◆ testSupportsWithPathinfoUnsuccessfulNoComponentNotEnoughPathElements()

◆ testUrlWithoutPathinfo()

◆ testUrlWithoutPathinfoAndOverriddenBaseUrl()

◆ testUrlWithoutPathinfoAndSecondContextObjectIsNull()

◆ testUrlWithPathinfo()

◆ testUrlWithPathinfoAndOverriddenBaseUrl()

◆ testUrlWithPathinfoAndSecondContextObjectIsNull()


The documentation for this class was generated from the following file: