You are here

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

Our module dependencies.

In Drupal 8's SimpleTest, we declare module dependencies in a public static property called $modules.

Type: array

File

testing_example/src/Tests/SimpleTestExampleMockModuleTest.php, line 42

Class

SimpleTestExampleMockModuleTest
Demonstrate SimpleTest with a mock module.

Namespace

Drupal\testing_example\Tests

Code

public static $modules = [
  'testing_example',
  'testing_example_test',
];