Open Journal Systems  2.4.3
 All Classes Namespaces Functions Variables Groups Pages
SolrWebServiceTest Class Reference
Inheritance diagram for SolrWebServiceTest:
PKPTestCase

Public Member Functions

 callbackAdditionalFieldNames ($hookName, $args)
 
journalGetSettingCallback ($name, $locale)
 
 testDeleteAllArticlesFromIndex ()
 
 testDeleteArticleFromIndex ()
 
 testGetArticleListXml ()
 
 testGetAutosuggestions ()
 
 testGetAvailableFields ()
 
 testGetInterestingTerms ()
 
 testGetServerStatus ()
 
 testPushIndexing ()
 
 testRetrieveResults ()
 
- Public Member Functions inherited from PKPTestCase
 getActualOutput ()
 

Protected Member Functions

 getMockedDAOs ()
 
 getMockedRegistryKeys ()
 
 setUp ()
 
- Protected Member Functions inherited from PKPTestCase
 getMockedDAOs ()
 
 getMockedRegistryKeys ()
 
 setTestConfiguration ($config, $configPath= 'config')
 
 setUp ()
 
 tearDown ()
 

Detailed Description

Test class for the SolrWebService class.

See Also
SolrWebService

Definition at line 27 of file SolrWebServiceTest.php.

Member Function Documentation

SolrWebServiceTest::callbackAdditionalFieldNames (   $hookName,
  $args 
)
See Also
DAO::getAdditionalFieldNames()

Definition at line 700 of file SolrWebServiceTest.php.

SolrWebServiceTest::getMockedDAOs ( )
protected
See Also
PKPTestCase::getMockedDAOs()

Definition at line 39 of file SolrWebServiceTest.php.

SolrWebServiceTest::getMockedRegistryKeys ( )
protected
See Also
PKPTestCase::getMockedRegistryKeys()

Definition at line 51 of file SolrWebServiceTest.php.

& SolrWebServiceTest::journalGetSettingCallback (   $name,
  $locale 
)

A callback mocking the Journal::getSetting() method.

Parameters
$namestring
$localestring
Returns
string

Definition at line 656 of file SolrWebServiceTest.php.

SolrWebServiceTest::setUp ( )
protected
SolrWebServiceTest::testDeleteAllArticlesFromIndex ( )
SolrWebServiceTest::testDeleteArticleFromIndex ( )
SolrWebServiceTest::testGetArticleListXml ( )

SolrWebService::getArticleListXml()

Definition at line 245 of file SolrWebServiceTest.php.

References Config\getVar().

SolrWebServiceTest::testGetAutosuggestions ( )
SolrWebServiceTest::testGetAvailableFields ( )
SolrWebServiceTest::testGetInterestingTerms ( )
SolrWebServiceTest::testGetServerStatus ( )
SolrWebServiceTest::testPushIndexing ( )
SolrWebServiceTest::testRetrieveResults ( )

SolrWebService::retrieveResults()

NB: Depends on correct journal indexing and must therefore be run after testIndexJournal(). We run journal indexing as the last test and this test as the first test as journal indexing is asynchronous. This means that a prior test run must be successful for this test to pass.

Definition at line 103 of file SolrWebServiceTest.php.


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