mirror of
https://github.com/joomla-extensions/weblinks.git
synced 2025-02-03 17:58:27 +00:00
Add url parameter for counter test
This commit is contained in:
parent
78591bdaa6
commit
2e91df1c07
@ -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"
|
@ -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');
|
||||
|
Loading…
x
Reference in New Issue
Block a user