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

Public Member Functions

 testUrl ()
 
- Public Member Functions inherited from PKPTestCase
 getActualOutput ()
 

Data Fields

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

Protected Member Functions

 getMockedRegistryKeys ()
 
 setUp ()
 
- Protected Member Functions inherited from PKPTestCase
 getMockedDAOs ()
 
 mockRequest ($path='index/test-page/test-op', $userId=null)
 
 setTestConfiguration ($config, $configPath='config')
 
 tearDown ()
 

Detailed Description

Tests for the Dispatcher class.

See also
Dispatcher

Definition at line 24 of file DispatcherTest.php.

Member Function Documentation

◆ getMockedRegistryKeys()

DispatcherTest::getMockedRegistryKeys ( )
protected

Override this method if you want to backup/restore registry entries before/after the test.

Returns
array A list of registry keys to backup and restore.

Reimplemented from PKPTestCase.

Definition at line 36 of file DispatcherTest.php.

◆ setUp()

DispatcherTest::setUp ( )
protected
See also
PKPTestCase::setUp()

Reimplemented from PKPTestCase.

Definition at line 43 of file DispatcherTest.php.

◆ testUrl()

DispatcherTest::testUrl ( )
See also
Dispatcher::url

Definition at line 70 of file DispatcherTest.php.

References Config\getVar().

Field Documentation

◆ $request

DispatcherTest::$request

Definition at line 31 of file DispatcherTest.php.

◆ PATHINFO_DISABLED

const DispatcherTest::PATHINFO_DISABLED = false

Definition at line 27 of file DispatcherTest.php.

◆ PATHINFO_ENABLED

const DispatcherTest::PATHINFO_ENABLED = true

Definition at line 26 of file DispatcherTest.php.


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