forked from Wavyzz/dolibarr
Scrutinizer Auto-Fixes
This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
This commit is contained in:
@@ -152,7 +152,7 @@ class MyModuleFunctionalTest extends \PHPUnit_Extensions_Selenium2TestCase
|
||||
{
|
||||
$this->url('/admin/const.php');
|
||||
$this->authenticate();
|
||||
$main_features_level_path='//input[@value="MAIN_FEATURES_LEVEL"]/following::input[@type="text"]';
|
||||
$main_features_level_path = '//input[@value="MAIN_FEATURES_LEVEL"]/following::input[@type="text"]';
|
||||
$main_features_level = $this->byXPath($main_features_level_path);
|
||||
$main_features_level->clear();
|
||||
$main_features_level->value('2');
|
||||
@@ -172,7 +172,7 @@ class MyModuleFunctionalTest extends \PHPUnit_Extensions_Selenium2TestCase
|
||||
{
|
||||
$this->url('/admin/modules.php');
|
||||
$this->authenticate();
|
||||
$module_status_image_path='//a[contains(@href, "' . self::$module_id . '")]/img';
|
||||
$module_status_image_path = '//a[contains(@href, "'.self::$module_id.'")]/img';
|
||||
$module_status_image = $this->byXPath($module_status_image_path);
|
||||
if (strstr($module_status_image->attribute('src'), 'switch_off.png')) {
|
||||
// Enable the module
|
||||
|
||||
Reference in New Issue
Block a user