You are here

public static property FieldNoteItemTest::$modules in Examples for Developers 8

Same name and namespace in other branches
  1. 3.x modules/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

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',
];