You are here

public static property FieldNoteItemTest::$modules in Examples for Developers 3.x

Same name and namespace in other branches
  1. 8 field_permission_example/tests/src/Kernel/FieldNoteItemTest.php \Drupal\Tests\field_permission_example\Kernel\FieldNoteItemTest::modules

We add the additional modules we need loaded here.

The test runner will merge the $modules lists from this class, the class it extends, and so on up the class hierarchy. So, it is not necessary to include modules in your list that a parent class has already declared.

Type: array

Overrides FieldKernelTestBase::$modules

File

modules/field_permission_example/tests/src/Kernel/FieldNoteItemTest.php, line 37

Class

FieldNoteItemTest
Tests our sticky-note field type.

Namespace

Drupal\Tests\field_permission_example\Kernel

Code

public static $modules = [
  'field_permission_example',
];