PHP Class FunctionalMostReadBlockPluginTest, ojs

Inheritance: extends WebTestCase
Show file Open project: pkp/ojs

Public Methods

Method Description
testMostReadArticleList ( ) SCENARIO: display most-read articles of a journal WHEN I display a journal page THEN I see a block plugin which lists the articles ranking highest for the selected "main metric" throughout the journal AND I'll see the articles as title links with the metric value in parentheses AND the metric values will correspond to the aggregate values of the last month by default.
testSelectTimeSpan ( ) SCENARIO OUTLINE: WHEN I see the "most-read articles" block plugin AND I select a {time span} from the drop down in the plugin THEN I'll see the {metric values} for the selected {time span}.

Protected Methods

Method Description
getAffectedTables ( )
setUp ( ) BACKGROUND: GIVEN I enabled the "most read articles" block plugin AND I enabled a metric providing plugin.

Method Details

getAffectedTables() protected method

See also: WebTestCase::getAffectedTables()
protected getAffectedTables ( )

setUp() protected method

BACKGROUND: GIVEN I enabled the "most read articles" block plugin AND I enabled a metric providing plugin.
See also: PKPTestCase::setUp()
protected setUp ( )

testMostReadArticleList() public method

SCENARIO: display most-read articles of a journal WHEN I display a journal page THEN I see a block plugin which lists the articles ranking highest for the selected "main metric" throughout the journal AND I'll see the articles as title links with the metric value in parentheses AND the metric values will correspond to the aggregate values of the last month by default.

testSelectTimeSpan() public method

EXAMPLES: time span | metric values ==================|============================== Previous Month | article 1: 10, article 2: 5 Previous Year | article 1: 20, article 2: 10 All Times | article 1: 30, article 2: 15
public testSelectTimeSpan ( )