Closed (duplicate)
Project:
Selenium
Version:
7.x-2.0-beta2
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
22 Sep 2011 at 11:01 UTC
Updated:
29 Dec 2012 at 09:44 UTC
I can't enable modules in the while running the selenium test cases. I am able to do so in the SimpleTest test cases. I tried it on a fresh install of drupal too.
Comments
Comment #1
ygerasimov commentedIt should work completely the same. You should be able to enable modules passing arguments to setUp().
Implementation of the setUp() method for DrupalSeleniumWebTestCase is
protected function setUp() {
$modules = func_get_args();
parent::setUp($modules);
//...
}
So everything passed to it is passed to parent setUp method that should enable modules for you.
Please let me know if it doesn't work and give me example so I can reproduce the problem.
Comment #2
pbuyle commentedIn D6,
DrupalWebTestCase::setUpused a variable-length argument list as modules list. In D7, it supports both a variable-length argument list or an array as first argument. The array as first argument is the recommended way of using it and the variable-length argument list support will be removed in D8.DrupalSeleniumWebTestCase::setUpcallparent::setUp(func_get_args())and thus only support the old deprecated Drupal 6 way of enabling module in a SimpleTest class.Comment #3
PatchRanger commentedClosed as a duplicate of #1876120: Fix setUp: let it get modules list as a single array, since that one has a patch.
Comment #3.0
PatchRanger commentedtried on fresh install