Open Monograph Press  1.1
 All Classes Namespaces Functions Variables Groups Pages
PKPRouterTestCase Class Reference
Inheritance diagram for PKPRouterTestCase:
PKPTestCase PKPComponentRouterTest PKPPageRouterTest

Public Member Functions

 testGetCacheFilename ()
 
 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

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

Detailed Description

Base tests class for PKPRouter tests.

See Also
PKPRouter

Definition at line 25 of file PKPRouterTestCase.inc.php.

Member Function Documentation

PKPRouterTestCase::_setUpMockDAOs (   $firstContextPath = 'current-context1',
  $secondContextPath = 'current-context2',
  $firstContextIsNull = false,
  $secondContextIsNull = false 
)
protected
PKPRouterTestCase::_setUpMockEnvironment (   $pathInfoEnabled = self::PATHINFO_ENABLED,
  $contextDepth = 2,
  $contextList = array('firstContext', 'secondContext') 
)
protected

Set's up a mock environment for router tests (PKPApplication, PKPRequest) with customizable contexts and path info flag.

Parameters
$pathInfoEnabledboolean
$contextDepthinteger
$contextListarray
Returns
unknown

Definition at line 298 of file PKPRouterTestCase.inc.php.

References Registry\set().

Referenced by PKPPageRouterTest\testGetCacheFilenameWithoutPathinfo(), PKPPageRouterTest\testGetCacheFilenameWithPathinfo(), testGetContext(), testGetContextForIndex(), testGetIndexUrl(), testGetIndexUrlRestful(), PKPComponentRouterTest\testGetRequestedComponentWithPathinfo(), PKPComponentRouterTest\testGetRequestedComponentWithPathinfoAndMalformedComponentString(), PKPComponentRouterTest\testGetRequestedComponentWithPathinfoDisabled(), testGetRequestedContextPathWithEmptyContextParameters(), testGetRequestedContextPathWithEmptyPathInfo(), testGetRequestedContextPathWithFullContextParameters(), testGetRequestedContextPathWithFullPathInfo(), testGetRequestedContextPathWithInvalidLevel(), testGetRequestedContextPathWithInvalidPathInfo(), testGetRequestedContextPathWithPartialContextParameters(), testGetRequestedContextPathWithPartialPathInfo(), PKPPageRouterTest\testGetRequestedOpWithEmptyOp(), PKPPageRouterTest\testGetRequestedOpWithPathinfo(), PKPComponentRouterTest\testGetRequestedOpWithPathinfo(), PKPComponentRouterTest\testGetRequestedOpWithPathinfoAndMalformedOpString(), PKPPageRouterTest\testGetRequestedOpWithPathinfoDisabled(), PKPComponentRouterTest\testGetRequestedOpWithPathinfoDisabled(), PKPPageRouterTest\testGetRequestedOpWithPathinfoDisabledAndEmptyOp(), PKPComponentRouterTest\testGetRequestedOpWithPathinfoDisabledAndMissingComponent(), PKPPageRouterTest\testGetRequestedPageWithEmtpyPage(), PKPPageRouterTest\testGetRequestedPageWithPathinfo(), PKPPageRouterTest\testGetRequestedPageWithPathinfoDisabled(), PKPPageRouterTest\testGetRequestedPageWithPathinfoDisabledAndEmtpyPage(), testGetSetApplication(), testGetSetDispatcher(), PKPPageRouterTest\testIsCacheableNotInstalled(), PKPPageRouterTest\testIsCacheableWithoutPathinfo(), PKPPageRouterTest\testIsCacheableWithoutPathinfoSuccess(), PKPPageRouterTest\testIsCacheableWithPathinfo(), PKPPageRouterTest\testIsCacheableWithPathinfoSuccess(), PKPPageRouterTest\testIsCacheableWithPost(), PKPComponentRouterTest\testRoute(), PKPComponentRouterTest\testSupportsWithPathinfoSuccessful(), PKPComponentRouterTest\testSupportsWithPathinfoUnsuccessfulComponentFileDoesNotExist(), PKPComponentRouterTest\testSupportsWithPathinfoUnsuccessfulComponentIsNotAHandler(), PKPComponentRouterTest\testSupportsWithPathinfoUnsuccessfulNoComponentNoMarker(), PKPComponentRouterTest\testSupportsWithPathinfoUnsuccessfulNoComponentNotEnoughPathElements(), PKPComponentRouterTest\testSupportsWithPathinfoUnsuccessfulOperationDoesNotExist(), PKPPageRouterTest\testUrlWithoutPathinfo(), PKPComponentRouterTest\testUrlWithoutPathinfo(), PKPPageRouterTest\testUrlWithoutPathinfoAndOverriddenBaseUrl(), PKPComponentRouterTest\testUrlWithoutPathinfoAndOverriddenBaseUrl(), PKPPageRouterTest\testUrlWithoutPathinfoAndSecondContextObjectIsNull(), PKPComponentRouterTest\testUrlWithoutPathinfoAndSecondContextObjectIsNull(), PKPPageRouterTest\testUrlWithPathinfo(), PKPComponentRouterTest\testUrlWithPathinfo(), PKPPageRouterTest\testUrlWithPathinfoAndOverriddenBaseUrl(), PKPComponentRouterTest\testUrlWithPathinfoAndOverriddenBaseUrl(), PKPPageRouterTest\testUrlWithPathinfoAndOverriddenNewContext(), PKPPageRouterTest\testUrlWithPathinfoAndSecondContextObjectIsNull(), and PKPComponentRouterTest\testUrlWithPathinfoAndSecondContextObjectIsNull().

PKPRouterTestCase::testGetCacheFilename ( )
See Also
PKPRouter::getCacheFilename PHPUnit_Framework_Error

Definition at line 84 of file PKPRouterTestCase.inc.php.

PKPRouterTestCase::testGetContextForIndex ( )
PKPRouterTestCase::testGetIndexUrlRestful ( )
PKPRouterTestCase::testGetRequestedContextPathWithEmptyContextParameters ( )
PKPRouterTestCase::testGetRequestedContextPathWithEmptyPathInfo ( )
PKPRouterTestCase::testGetRequestedContextPathWithFullContextParameters ( )
PKPRouterTestCase::testGetRequestedContextPathWithFullPathInfo ( )
PKPRouterTestCase::testGetRequestedContextPathWithInvalidLevel ( )
PKPRouterTestCase::testGetRequestedContextPathWithInvalidPathInfo ( )
PKPRouterTestCase::testGetRequestedContextPathWithPartialContextParameters ( )
PKPRouterTestCase::testGetRequestedContextPathWithPartialPathInfo ( )
PKPRouterTestCase::testGetSetApplication ( )
PKPRouterTestCase::testGetSetDispatcher ( )
PKPRouterTestCase::testIsCacheable ( )
See Also
PKPRouter::isCacheable

Definition at line 75 of file PKPRouterTestCase.inc.php.

PKPRouterTestCase::testSupports ( )
See Also
PKPRouter::supports

Definition at line 67 of file PKPRouterTestCase.inc.php.


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