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

Public Member Functions

 callbackGetArticle ($articleId, $journalId=null, $useCache=false)
 
 callbackRetrieveResults ($hook, $params)
 
 testRetrieveResults ()
 
 testRetrieveResultsViaPluginHook ()
 
- Public Member Functions inherited from PKPTestCase
 getActualOutput ()
 

Protected Member Functions

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

Detailed Description

Test class for the ArticleSearch class.

See Also
ArticleSearch

Definition at line 26 of file ArticleSearchTest.php.

Member Function Documentation

ArticleSearchTest::callbackGetArticle (   $articleId,
  $journalId = null,
  $useCache = false 
)

Callback dealing with ArticleDAO::getArticle() calls via our mock ArticleDAO.

See Also
ArticleDAO::getArticle()

Definition at line 194 of file ArticleSearchTest.php.

ArticleSearchTest::callbackRetrieveResults (   $hook,
  $params 
)

Simulate a search plug-ins "retrieve results" hook.

See Also
ArticleSearch::retrieveResults()

Definition at line 173 of file ArticleSearchTest.php.

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

Definition at line 36 of file ArticleSearchTest.php.

ArticleSearchTest::setUp ( )
protected
See Also
PKPTestCase::setUp()

Definition at line 48 of file ArticleSearchTest.php.

ArticleSearchTest::tearDown ( )
protected
See Also
PKPTestCase::tearDown()

Definition at line 63 of file ArticleSearchTest.php.

References HookRegistry\resetCalledHooks().

ArticleSearchTest::testRetrieveResults ( )

ArticleSearch

Definition at line 75 of file ArticleSearchTest.php.

References HookRegistry\clear().

ArticleSearchTest::testRetrieveResultsViaPluginHook ( )

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