Open Journal Systems  2.4.3
 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
LucenePlugin

FEATURE: similar documents

Definition at line 24 of file FunctionalLucenePluginSimDocTest.php.

Member Function Documentation

FunctionalLucenePluginSimDocTest::getAffectedTables ( )
protected
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 FunctionalLucenePluginSimDocTest.php.

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


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