Open Journal Systems  3.3.0
PKPRequestTest Class Reference
Inheritance diagram for PKPRequestTest:
PKPTestCase

Public Member Functions

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

Protected Attributes

 $request
 

Additional Inherited Members

- Data Fields inherited from PKPTestCase
 $mockedRegistryKeys = array()
 
 $registryBackup = array()
 
- Protected Member Functions inherited from PKPTestCase
 getMockedDAOs ()
 
 getMockedRegistryKeys ()
 
 mockRequest ($path='index/test-page/test-op', $userId=null)
 
 setTestConfiguration ($config, $configPath='config')
 

Detailed Description

Tests for the PKPRequest class.

@backupGlobals enabled

See also
PKPRequest

Definition at line 27 of file PKPRequestTest.php.

Member Function Documentation

◆ redirectUrlHook()

PKPRequestTest::redirectUrlHook (   $hookName,
  $args 
)

A hook for redirection testing.

Parameters
$hookNamestring
$argsarray

Definition at line 97 of file PKPRequestTest.php.

◆ setUp()

PKPRequestTest::setUp ( )

Reimplemented from PKPTestCase.

Definition at line 31 of file PKPRequestTest.php.

References Registry\get(), and HookRegistry\rememberCalledHooks().

◆ tearDown()

PKPRequestTest::tearDown ( )

Reimplemented from PKPTestCase.

Definition at line 40 of file PKPRequestTest.php.

References HookRegistry\resetCalledHooks(), and Registry\set().

◆ testGetBasePath()

PKPRequestTest::testGetBasePath ( )

◆ testGetBaseUrl()

PKPRequestTest::testGetBaseUrl ( )

◆ testGetBaseUrlWithHostDetection()

PKPRequestTest::testGetBaseUrlWithHostDetection ( )
See also
PKPRequest::getBaseUrl

Definition at line 134 of file PKPRequestTest.php.

References PKPTestCase\setTestConfiguration().

◆ testGetEmptyBasePath()

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

Definition at line 171 of file PKPRequestTest.php.

◆ testGetProtocolHttpsVariableOff()

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

Definition at line 335 of file PKPRequestTest.php.

◆ testGetProtocolHttpsVariableOn()

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

Definition at line 346 of file PKPRequestTest.php.

◆ testGetProtocolNoHttpsVariable()

PKPRequestTest::testGetProtocolNoHttpsVariable ( )

◆ testGetRequestPath()

PKPRequestTest::testGetRequestPath ( )

◆ testGetRequestPathRestful()

PKPRequestTest::testGetRequestPathRestful ( )

◆ testGetRequestPathWithoutPathinfo()

PKPRequestTest::testGetRequestPathWithoutPathinfo ( )

◆ testGetRequestPathWithPathinfo()

PKPRequestTest::testGetRequestPathWithPathinfo ( )

◆ testGetServerHostLocalhost()

PKPRequestTest::testGetServerHostLocalhost ( )
See also
PKPRequest::getServerHost

Definition at line 247 of file PKPRequestTest.php.

◆ testGetServerHostWithHostname()

PKPRequestTest::testGetServerHostWithHostname ( )
See also
PKPRequest::getServerHost @depends testGetServerHostLocalhost

Definition at line 259 of file PKPRequestTest.php.

◆ testGetServerHostWithHttpHost()

PKPRequestTest::testGetServerHostWithHttpHost ( )
See also
PKPRequest::getServerHost @depends testGetServerHostWithHostname

Definition at line 285 of file PKPRequestTest.php.

◆ testGetServerHostWithHttpXForwardedHost()

PKPRequestTest::testGetServerHostWithHttpXForwardedHost ( )
See also
PKPRequest::getServerHost @depends testGetServerHostWithHttpHost

Definition at line 299 of file PKPRequestTest.php.

◆ testGetServerHostWithServerName()

PKPRequestTest::testGetServerHostWithServerName ( )
See also
PKPRequest::getServerHost @depends testGetServerHostLocalhost

Definition at line 272 of file PKPRequestTest.php.

◆ testGetUserVar()

PKPRequestTest::testGetUserVar ( )
See also
PKPRequest::getUserVar

Definition at line 406 of file PKPRequestTest.php.

◆ testGetUserVars()

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

Definition at line 424 of file PKPRequestTest.php.

◆ testIsPathInfoEnabled1()

PKPRequestTest::testIsPathInfoEnabled1 ( )

◆ testIsPathInfoEnabled2()

PKPRequestTest::testIsPathInfoEnabled2 ( )

◆ testIsRestfulUrlsEnabled1()

PKPRequestTest::testIsRestfulUrlsEnabled1 ( )

◆ testIsRestfulUrlsEnabled2()

PKPRequestTest::testIsRestfulUrlsEnabled2 ( )

◆ testRedirectUrl()

PKPRequestTest::testRedirectUrl ( )

◆ testTrustXForwardedForNotSet()

PKPRequestTest::testTrustXForwardedForNotSet ( )
See also
PKPRequest::getRemoteAddr

Definition at line 377 of file PKPRequestTest.php.

◆ testTrustXForwardedForOff()

PKPRequestTest::testTrustXForwardedForOff ( )
See also
PKPRequest::getRemoteAddr

Definition at line 367 of file PKPRequestTest.php.

◆ testTrustXForwardedForOn()

PKPRequestTest::testTrustXForwardedForOn ( )
See also
PKPRequest::getRemoteAddr

Definition at line 357 of file PKPRequestTest.php.

Field Documentation

◆ $request

PKPRequestTest::$request
protected

Definition at line 28 of file PKPRequestTest.php.


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