1 field_permission_example.test public 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 BackdropWebTestCase::setUp

File

modules/examples/field_permission_example/field_permission_example.test, line 61
Tests for Field Permission Example.

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);
}