You are here

protected function TermMergeWebTestCase::normalizeSetUpArguments in Term Merge 7

Normalize the input arguments of ::setUp() method.

The arguments of ::setUp() method can either be a single argument (array of modules) or a set of input arguments where each single argument is a module name.

Parameters

array $args: Array of input arguments given to a ::setUp() method

Return value

array Array of modules that are given to a ::setUp() method.

5 calls to TermMergeWebTestCase::normalizeSetUpArguments()
EntityReferenceTermMergeWebTestCase::setUp in ./term_merge.test
SetUp method.
RedirectTermMergeWebTestCase::setUp in ./term_merge.test
SetUp method.
SynonymsTermMergeWebTestCase::setUp in ./term_merge.test
SetUp method.
TermMergeWebTestCase::setUp in ./term_merge.test
SetUp method.
ViewsTermMergeWebTestCase::setUp in ./term_merge.test
SetUp method.

File

./term_merge.test, line 96
Test the Term Merge module.

Class

TermMergeWebTestCase
Base class for all tests of Term Merge module.

Code

protected function normalizeSetUpArguments($args) {
  return isset($args[0]) && is_array($args[0]) ? $args[0] : $args;
}