Skip to content
Snippets Groups Projects
Commit 1ee1269b authored by Angie Byron's avatar Angie Byron
Browse files

Issue #1043998 by lyricnz, sun: Fixed Strict PHP warning in Fields UI tests.

parent 8ee87a0f
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -10,8 +10,15 @@
*/
class FieldUITestCase extends DrupalWebTestCase {
function setUp($modules = array()) {
array_unshift($modules, 'field_test');
function setUp() {
// Since this is a base class for many test cases, support the same
// flexibility that DrupalWebTestCase::setUp() has for the modules to be
// passed in as either an array or a variable number of string arguments.
$modules = func_get_args();
if (isset($modules[0]) && is_array($modules[0])) {
$modules = $modules[0];
}
$modules[] = 'field_test';
parent::setUp($modules);
// Create test user.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment