Open Journal Systems  2.4.4
 All Classes Namespaces Functions Variables Groups Pages
FunctionalLucenePluginSimDocTest Class Reference
Inheritance diagram for FunctionalLucenePluginSimDocTest:
FunctionalLucenePluginBaseTestCase WebTestCase

Public Member Functions

 testSimilarDocuments ()

Protected Member Functions

 getAffectedTables ()
- Protected Member Functions inherited from FunctionalLucenePluginBaseTestCase
 simpleSearch ($searchPhrase, $searchField= 'query', $articles=array(), $notArticles=array(), $locale= 'en_US', $journal= 'lucene-test')
 simpleSearchAcrossJournals ($searchTerm, $locale= 'en_US')
- Protected Member Functions inherited from WebTestCase
 getAffectedTables ()
 improveException ($e, $testObject)
 logIn ()
 setUp ()
 tearDown ()
 verified ()
 verifyAndOpen ($url)

Detailed Description

Integration/Functional test for the "similar documents" feature of the lucene plug-in.

See Also

FEATURE: similar documents

Definition at line 24 of file FunctionalLucenePluginSimDocTestCase.php.

Member Function Documentation

FunctionalLucenePluginSimDocTest::getAffectedTables ( )
FunctionalLucenePluginSimDocTest::testSimilarDocuments ( )

BACKGROUND: GIVEN I enabled the "similar documents" feature

SCENARIO: propose similar documents WHEN I execute a simple search that returns at least one result THEN The result list will contain a button behind each item of the result list: "similar documents"

SCENARIO: find similar documents GIVEN I executed a simple search that returned at least one result AND I see a "similar documents" button behind each item of the result list WHEN I click the "similar documents" button of an item THEN I'll see a result set containing articles containing similar keywords as defined by solr's default similarity algorithm.

Definition at line 60 of file FunctionalLucenePluginSimDocTestCase.php.

References DAORegistry\getDAO(), and FunctionalLucenePluginBaseTestCase\simpleSearch().

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