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

Public Member Functions

 testRemoveBaseUrl ($baseUrl, $url, $expectUrl)
 
 testRemoveBaseUrlDataProvider ()
 
 testRemoveBaseUrlOverride ($contextPath, $baseUrl, $url, $expectUrl)
 
 testRemoveBaseUrlOverrideDataProvider ()
 
- Public Member Functions inherited from PKPTestCase
 getActualOutput ()
 

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')
 
 setUp ()
 
 tearDown ()
 

Detailed Description

Tests for the Core class.

See also
Core

Definition at line 19 of file CoreTest.inc.php.

Member Function Documentation

◆ testRemoveBaseUrl()

CoreTest::testRemoveBaseUrl (   $baseUrl,
  $url,
  $expectUrl 
)

Test Core::removeBaseUrl method using the default base url config setting.

Parameters
$baseUrlstring
$urlstring
$expectUrlstring
See also
removeBaseUrl @dataProvider testRemoveBaseUrlDataProvider

Definition at line 30 of file CoreTest.inc.php.

References Config\getData(), and Core\removeBaseUrl().

◆ testRemoveBaseUrlDataProvider()

CoreTest::testRemoveBaseUrlDataProvider ( )

Return cases data for testRemoveBaseUrl test.

Returns
array

Definition at line 63 of file CoreTest.inc.php.

◆ testRemoveBaseUrlOverride()

CoreTest::testRemoveBaseUrlOverride (   $contextPath,
  $baseUrl,
  $url,
  $expectUrl 
)

Test Core::removeBaseUrl method using the base_url[...] override config settings.

Parameters
$contextPathstring
$baseUrlstring
$urlstring
$expectUrlstring
See also
removeBaseUrl @dataProvider testRemoveBaseUrlOverrideDataProvider

Definition at line 48 of file CoreTest.inc.php.

References Config\getData(), and Core\removeBaseUrl().

◆ testRemoveBaseUrlOverrideDataProvider()

CoreTest::testRemoveBaseUrlOverrideDataProvider ( )

Return cases data for testRemoveBaseUrl test.

Returns
array

Definition at line 109 of file CoreTest.inc.php.


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