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

Public Member Functions

 testGetCacheFilename ()
 
 testGetCacheFilenameWithoutPathinfo ()
 
 testGetCacheFilenameWithPathinfo ()
 
 testGetRequestedOpWithEmptyOp ()
 
 testGetRequestedOpWithPathinfo ()
 
 testGetRequestedOpWithPathinfoDisabled ()
 
 testGetRequestedOpWithPathinfoDisabledAndEmptyOp ()
 
 testGetRequestedPageWithEmtpyPage ()
 
 testGetRequestedPageWithPathinfo ()
 
 testGetRequestedPageWithPathinfoDisabled ()
 
 testGetRequestedPageWithPathinfoDisabledAndEmtpyPage ()
 
 testIsCacheableNotInstalled ()
 
 testIsCacheableWithoutPathinfo ()
 
 testIsCacheableWithoutPathinfoSuccess ()
 
 testIsCacheableWithPathinfo ()
 
 testIsCacheableWithPathinfoSuccess ()
 
 testIsCacheableWithPost ()
 
 testUrlWithoutPathinfo ()
 
 testUrlWithoutPathinfoAndOverriddenBaseUrl ()
 
 testUrlWithoutPathinfoAndSecondContextObjectIsNull ()
 
 testUrlWithPathinfo ()
 
 testUrlWithPathinfoAndOverriddenBaseUrl ()
 
 testUrlWithPathinfoAndOverriddenNewContext ()
 
 testUrlWithPathinfoAndSecondContextObjectIsNull ()
 
- Public Member Functions inherited from PKPRouterTestCase
 testGetContext ()
 
 testGetContextForIndex ()
 
 testGetIndexUrl ()
 
 testGetIndexUrlRestful ()
 
 testGetRequestedContextPathWithEmptyContextParameters ()
 
 testGetRequestedContextPathWithEmptyPathInfo ()
 
 testGetRequestedContextPathWithFullContextParameters ()
 
 testGetRequestedContextPathWithFullPathInfo ()
 
 testGetRequestedContextPathWithInvalidLevel ()
 
 testGetRequestedContextPathWithInvalidPathInfo ()
 
 testGetRequestedContextPathWithPartialContextParameters ()
 
 testGetRequestedContextPathWithPartialPathInfo ()
 
 testGetSetApplication ()
 
 testGetSetDispatcher ()
 
 testIsCacheable ()
 
 testSupports ()
 
- 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 PKPPageRouter class.

@backupGlobals enabled

See also
PKPPageRouter

Definition at line 28 of file PKPPageRouterTest.php.

Member Function Documentation

◆ setUp()

PKPPageRouterTest::setUp ( )
protected

Reimplemented from PKPRouterTestCase.

Definition at line 29 of file PKPPageRouterTest.php.

◆ testGetCacheFilename()

PKPPageRouterTest::testGetCacheFilename ( )
See also
PKPRouter::getCacheFilename

Definition at line 134 of file PKPPageRouterTest.php.

◆ testGetCacheFilenameWithoutPathinfo()

PKPPageRouterTest::testGetCacheFilenameWithoutPathinfo ( )

◆ testGetCacheFilenameWithPathinfo()

PKPPageRouterTest::testGetCacheFilenameWithPathinfo ( )

◆ testGetRequestedOpWithEmptyOp()

PKPPageRouterTest::testGetRequestedOpWithEmptyOp ( )

◆ testGetRequestedOpWithPathinfo()

PKPPageRouterTest::testGetRequestedOpWithPathinfo ( )

◆ testGetRequestedOpWithPathinfoDisabled()

PKPPageRouterTest::testGetRequestedOpWithPathinfoDisabled ( )

◆ testGetRequestedOpWithPathinfoDisabledAndEmptyOp()

PKPPageRouterTest::testGetRequestedOpWithPathinfoDisabledAndEmptyOp ( )

◆ testGetRequestedPageWithEmtpyPage()

PKPPageRouterTest::testGetRequestedPageWithEmtpyPage ( )

◆ testGetRequestedPageWithPathinfo()

PKPPageRouterTest::testGetRequestedPageWithPathinfo ( )

◆ testGetRequestedPageWithPathinfoDisabled()

PKPPageRouterTest::testGetRequestedPageWithPathinfoDisabled ( )

◆ testGetRequestedPageWithPathinfoDisabledAndEmtpyPage()

PKPPageRouterTest::testGetRequestedPageWithPathinfoDisabledAndEmtpyPage ( )

◆ testIsCacheableNotInstalled()

PKPPageRouterTest::testIsCacheableNotInstalled ( )

◆ testIsCacheableWithoutPathinfo()

PKPPageRouterTest::testIsCacheableWithoutPathinfo ( )

◆ testIsCacheableWithoutPathinfoSuccess()

PKPPageRouterTest::testIsCacheableWithoutPathinfoSuccess ( )
See also
PKPPageRouter::isCacheable @runInSeparateProcess @preserveGlobalState disabled

Definition at line 121 of file PKPPageRouterTest.php.

References PKPRouterTestCase\_setUpMockEnvironment(), and PKPTestCase\setTestConfiguration().

◆ testIsCacheableWithPathinfo()

PKPPageRouterTest::testIsCacheableWithPathinfo ( )

◆ testIsCacheableWithPathinfoSuccess()

PKPPageRouterTest::testIsCacheableWithPathinfoSuccess ( )
See also
PKPPageRouter::isCacheable @runInSeparateProcess @preserveGlobalState disabled

Definition at line 81 of file PKPPageRouterTest.php.

References PKPRouterTestCase\_setUpMockEnvironment(), Validation\setIsLoggedIn(), and PKPTestCase\setTestConfiguration().

◆ testIsCacheableWithPost()

PKPPageRouterTest::testIsCacheableWithPost ( )

◆ testUrlWithoutPathinfo()

PKPPageRouterTest::testUrlWithoutPathinfo ( )

◆ testUrlWithoutPathinfoAndOverriddenBaseUrl()

PKPPageRouterTest::testUrlWithoutPathinfoAndOverriddenBaseUrl ( )

◆ testUrlWithoutPathinfoAndSecondContextObjectIsNull()

PKPPageRouterTest::testUrlWithoutPathinfoAndSecondContextObjectIsNull ( )

◆ testUrlWithPathinfo()

PKPPageRouterTest::testUrlWithPathinfo ( )

◆ testUrlWithPathinfoAndOverriddenBaseUrl()

PKPPageRouterTest::testUrlWithPathinfoAndOverriddenBaseUrl ( )

◆ testUrlWithPathinfoAndOverriddenNewContext()

PKPPageRouterTest::testUrlWithPathinfoAndOverriddenNewContext ( )

◆ testUrlWithPathinfoAndSecondContextObjectIsNull()

PKPPageRouterTest::testUrlWithPathinfoAndSecondContextObjectIsNull ( )

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