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

Public Member Functions

 redirectUrlHook ($hookName, $args)
 
 testGetBasePath ()
 
 testGetBaseUrl ()
 
 testGetBaseUrlWithHostDetection ()
 
 testGetEmptyBasePath ()
 
 testGetProtocolHttpsVariableOff ()
 
 testGetProtocolHttpsVariableOn ()
 
 testGetProtocolNoHttpsVariable ()
 
 testGetRequestPath ()
 
 testGetRequestPathRestful ()
 
 testGetRequestPathWithoutPathinfo ()
 
 testGetRequestPathWithPathinfo ()
 
 testGetServerHostLocalhost ()
 
 testGetServerHostWithHostname ()
 
 testGetServerHostWithHttpHost ()
 
 testGetServerHostWithHttpXForwardedHost ()
 
 testGetUserVar ()
 
 testGetUserVars ()
 
 testIsPathInfoEnabled1 ()
 
 testIsPathInfoEnabled2 ()
 
 testIsRestfulUrlsEnabled1 ()
 
 testIsRestfulUrlsEnabled2 ()
 
 testRedirectUrl ()
 
- Public Member Functions inherited from PKPTestCase
 getActualOutput ()
 

Additional Inherited Members

- 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

Tests for the PKPRequest class.

See Also
PKPRequest

Definition at line 24 of file PKPRequestTest.php.

Member Function Documentation

PKPRequestTest::redirectUrlHook (   $hookName,
  $args 
)

A hook for redirection testing.

Parameters
$hookNamestring
$argsarray

Definition at line 87 of file PKPRequestTest.php.

PKPRequestTest::testGetBasePath ( )
PKPRequestTest::testGetBaseUrl ( )
PKPRequestTest::testGetBaseUrlWithHostDetection ( )
See Also
PKPRequest::getBaseUrl

Definition at line 122 of file PKPRequestTest.php.

References PKPTestCase\setTestConfiguration().

PKPRequestTest::testGetEmptyBasePath ( )
See Also
PKPRequest::getBasePath

Definition at line 159 of file PKPRequestTest.php.

PKPRequestTest::testGetProtocolHttpsVariableOff ( )
See Also
PKPRequest::getProtocol

Definition at line 305 of file PKPRequestTest.php.

PKPRequestTest::testGetProtocolHttpsVariableOn ( )
See Also
PKPRequest::getProtocol

Definition at line 315 of file PKPRequestTest.php.

PKPRequestTest::testGetProtocolNoHttpsVariable ( )
PKPRequestTest::testGetRequestPath ( )
PKPRequestTest::testGetRequestPathRestful ( )
PKPRequestTest::testGetRequestPathWithoutPathinfo ( )
PKPRequestTest::testGetRequestPathWithPathinfo ( )
PKPRequestTest::testGetServerHostLocalhost ( )
See Also
PKPRequest::getServerHost

Definition at line 235 of file PKPRequestTest.php.

PKPRequestTest::testGetServerHostWithHostname ( )
PKPRequestTest::testGetServerHostWithHttpHost ( )
PKPRequestTest::testGetServerHostWithHttpXForwardedHost ( )
PKPRequestTest::testGetUserVar ( )
See Also
PKPRequest::getUserVar

Definition at line 325 of file PKPRequestTest.php.

PKPRequestTest::testGetUserVars ( )
See Also
PKPRequest::getUserVars

Definition at line 343 of file PKPRequestTest.php.

PKPRequestTest::testIsPathInfoEnabled1 ( )
PKPRequestTest::testIsPathInfoEnabled2 ( )
PKPRequestTest::testIsRestfulUrlsEnabled1 ( )
PKPRequestTest::testIsRestfulUrlsEnabled2 ( )
PKPRequestTest::testRedirectUrl ( )

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