You are here

public static property UnitTest::$modules in No Non-breaking Space Filter 8

Modules to enable.

Test classes extending this class, and any classes in the hierarchy up to this class, may specify individual lists of modules to enable by setting this property. The values of all properties in all classes in the hierarchy are merged.

Any modules specified in the $modules property are automatically loaded and set as the fixed module list.

Unlike WebTestBase::setUp(), the specified modules are loaded only, but not automatically installed. Modules need to be installed manually, if needed.

Type: array

Overrides KernelTestBase::$modules

See also

\Drupal\simpletest\KernelTestBase::enableModules()

\Drupal\simpletest\KernelTestBase::setUp()

File

src/Tests/UnitTest.php, line 17

Class

UnitTest
Run unit tests on some functions.

Namespace

Drupal\no_nbsp\Tests

Code

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