function GenericFieldTest::setUp
Simpletest's setUp().
We want to be able to subclass this class, so we jump through a few hoops in order to get the modules from args and add our own.
Overrides DrupalWebTestCase::setUp
1 call to GenericFieldTest::setUp()
- FieldTestPermissionsExample::setUp in field_permission_example/
tests/ field_permission_example.test - Simpletest's setUp().
1 method overrides GenericFieldTest::setUp()
- FieldTestPermissionsExample::setUp in field_permission_example/
tests/ field_permission_example.test - Simpletest's setUp().
File
-
field_permission_example/
tests/ field_permission_example.test, line 72
Class
- GenericFieldTest
- A generic field testing class.
Code
public function setUp() {
$this->instanceNames = array();
$modules = func_get_args();
if (isset($modules[0]) && is_array($modules[0])) {
$modules = $modules[0];
}
$modules[] = 'node';
$modules[] = 'field_ui';
parent::setUp($modules);
}