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

Public Member Functions

 callbackDeleteTextIndex ($hook, $params)
 
 callbackIndexArticleMetadata ($hook, $params)
 
 callbackIndexSubmissionFiles ($hook, $params)
 
 callbackRebuildIndex ($hook, $params)
 
 callbackUpdateFileIndex ($hook, $params)
 
 testDeleteTextIndex ()
 
 testDeleteTextIndexViaPluginHook ()
 
 testIndexArticleMetadata ()
 
 testIndexArticleMetadataViaPluginHook ()
 
 testIndexSubmissionFiles ()
 
 testIndexSubmissionFilesViaPluginHook ()
 
 testRebuildIndex ()
 
 testRebuildIndexViaPluginHook ()
 
 testUpdateFileIndexViaPluginHook ()
 
- Public Member Functions inherited from PKPTestCase
 getActualOutput ()
 

Protected Member Functions

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

Additional Inherited Members

- Data Fields inherited from PKPTestCase
 $mockedRegistryKeys = array()
 
 $registryBackup = array()
 

Detailed Description

Test class for the ArticleSearchIndex class.

See also
ArticleSearchIndex

Definition at line 23 of file ArticleSearchIndexTest.php.

Member Function Documentation

◆ callbackDeleteTextIndex()

ArticleSearchIndexTest::callbackDeleteTextIndex (   $hook,
  $params 
)

Simulate a search plug-ins "delete text index" hook.

See also
ArticleSearchIndex::submissionFileDeleted()

Definition at line 266 of file ArticleSearchIndexTest.php.

◆ callbackIndexArticleMetadata()

ArticleSearchIndexTest::callbackIndexArticleMetadata (   $hook,
  $params 
)

Simulate a search plug-ins "index article metadata" hook.

See also
ArticleSearchIndex::submissionMetadataChanged()

Definition at line 299 of file ArticleSearchIndexTest.php.

◆ callbackIndexSubmissionFiles()

ArticleSearchIndexTest::callbackIndexSubmissionFiles (   $hook,
  $params 
)

Simulate a search plug-ins "index article files" hook.

See also
ArticleSearchIndex::submissionFilesChanged()

Definition at line 315 of file ArticleSearchIndexTest.php.

◆ callbackRebuildIndex()

ArticleSearchIndexTest::callbackRebuildIndex (   $hook,
  $params 
)

Simulate a search plug-ins "rebuild index" hook.

See also
ArticleSearchIndex::rebuildIndex()

Definition at line 283 of file ArticleSearchIndexTest.php.

◆ callbackUpdateFileIndex()

ArticleSearchIndexTest::callbackUpdateFileIndex (   $hook,
  $params 
)

Simulate a search plug-ins "update file index" hook.

See also
ArticleSearchIndex::submissionFileChanged()

Definition at line 248 of file ArticleSearchIndexTest.php.

◆ getMockedDAOs()

ArticleSearchIndexTest::getMockedDAOs ( )
protected
See also
PKPTestCase::getMockedDAOs()

Reimplemented from PKPTestCase.

Definition at line 31 of file ArticleSearchIndexTest.php.

◆ setUp()

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

Reimplemented from PKPTestCase.

Definition at line 43 of file ArticleSearchIndexTest.php.

References HookRegistry\rememberCalledHooks().

◆ tearDown()

ArticleSearchIndexTest::tearDown ( )
protected
See also
PKPTestCase::tearDown()

Reimplemented from PKPTestCase.

Definition at line 51 of file ArticleSearchIndexTest.php.

References HookRegistry\resetCalledHooks().

◆ testDeleteTextIndex()

ArticleSearchIndexTest::testDeleteTextIndex ( )

◆ testDeleteTextIndexViaPluginHook()

ArticleSearchIndexTest::testDeleteTextIndexViaPluginHook ( )

◆ testIndexArticleMetadata()

ArticleSearchIndexTest::testIndexArticleMetadata ( )
See also
ArticleSearchIndex

Definition at line 159 of file ArticleSearchIndexTest.php.

References HookRegistry\clear().

◆ testIndexArticleMetadataViaPluginHook()

ArticleSearchIndexTest::testIndexArticleMetadataViaPluginHook ( )

◆ testIndexSubmissionFiles()

ArticleSearchIndexTest::testIndexSubmissionFiles ( )

◆ testIndexSubmissionFilesViaPluginHook()

ArticleSearchIndexTest::testIndexSubmissionFilesViaPluginHook ( )

◆ testRebuildIndex()

ArticleSearchIndexTest::testRebuildIndex ( )

◆ testRebuildIndexViaPluginHook()

ArticleSearchIndexTest::testRebuildIndexViaPluginHook ( )

◆ testUpdateFileIndexViaPluginHook()

ArticleSearchIndexTest::testUpdateFileIndexViaPluginHook ( )

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