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

Public Member Functions

 testAlternativeSpelling ()
 
 testAlternativeSpellingWithNonDefaultField ()
 

Protected Member Functions

 getAffectedTables ()
 
 setUp ()
 
- 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 "alternative spellings" feature of the lucene plug-in.

See Also
LucenePlugin

FEATURE: alternative spelling suggestions

Definition at line 24 of file FunctionalLucenePluginSpellingTestCase.php.

Member Function Documentation

FunctionalLucenePluginSpellingTest::getAffectedTables ( )
protected
FunctionalLucenePluginSpellingTest::setUp ( )
protected
FunctionalLucenePluginSpellingTest::testAlternativeSpelling ( )

SCENARIO: alternative spelling proposal WHEN I set the UI locale to "German" AND I execute a simple search with the search phrase "tEsts UND Nutela" THEN I'll see an additional link "Meinten Sie: 'tests UND nutella'" above the result list.

SCENARIO: alternative spelling search GIVEN I have executed a simple search with the search phrase "tEsts UND Nutela" AND I see a link "Meinten Sie: 'test UND nutella'" above the result list WHEN I click this link THEN I'll see the result set corresponding to the search phrase "test UND nutella".

Definition at line 80 of file FunctionalLucenePluginSpellingTestCase.php.

References FunctionalLucenePluginBaseTestCase\simpleSearch().

FunctionalLucenePluginSpellingTest::testAlternativeSpellingWithNonDefaultField ( )

SCENARIO: alternative spelling proposal (non-default field) WHEN I select the "Authors" search field AND I execute a simple search with the search phrase "autor" THEN I'll see an additional link "Did you mean: 'author'" above the result list.

SCENARIO: alternative spelling search (non-default field) GIVEN I have executed a simple search on the "Authors" search field with the search phrase "author" AND I see a link "Did you mean: 'author'" above the result list WHEN I click this link THEN I'll see the result set corresponding to the search phrase "author" within an advanced author filter.

Definition at line 116 of file FunctionalLucenePluginSpellingTestCase.php.

References FunctionalLucenePluginBaseTestCase\simpleSearch().


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