Add url parameter for counter test

This commit is contained in:
Francesco Abeni 2015-10-31 12:10:07 +01:00
parent 78591bdaa6
commit 2e91df1c07
2 changed files with 3 additions and 2 deletions

View File

@ -37,4 +37,5 @@ modules:
language: 'English (United Kingdom)' # Language in which you want the Application to be Installed
AcceptanceHelper:
repo_folder: '/home/travis/build/joomla-extensions/weblinks/' # Path to the Extension repository. To be used by tests to install via Install from folder
counter_test_url: 'http://localhost/tests/joomla-cms3' # the url for the weblink item used to test hits counter
error_level: "E_ALL & ~E_STRICT & ~E_DEPRECATED"

View File

@ -55,7 +55,7 @@ class FrontendWeblinksCest
public function hitsAreNotIncrementedIfCountClicksIsOff(\Step\Acceptance\weblink $I)
{
$title = 'Weblink' . $this->faker->randomNumber();
$url = $this->faker->url();
$url = $I->getConfiguration('counter_test_url');
$I->am('Administrator');
$I->wantToTest('Hits are not incremented if Count Clicks is off');
@ -89,7 +89,7 @@ class FrontendWeblinksCest
public function hitsAreIncrementedIfCountClicksIsOn(\Step\Acceptance\weblink $I)
{
$title = 'Weblink' . $this->faker->randomNumber();
$url = $this->faker->url();
$url = $I->getConfiguration('counter_test_url');
$I->am('Administrator');
$I->wantToTest('Hits are incremented if Count Clicks is on');