class DrupalCodeBuilderTestSampleData in Module Builder 8.3
Uses the code analysis data that's part of Drupal Code Builder's test suite.
This allows tests to have working code analysis data without having to run the analysis.
Hierarchy
- class \Drupal\module_builder\DrupalCodeBuilder
- class \Drupal\test_dummy_module_write_location\DrupalCodeBuilderTestSampleData
Expanded class hierarchy of DrupalCodeBuilderTestSampleData
1 string reference to 'DrupalCodeBuilderTestSampleData'
- test_dummy_module_write_location.services.yml in tests/
modules/ test_dummy_module_write_location/ test_dummy_module_write_location.services.yml - tests/modules/test_dummy_module_write_location/test_dummy_module_write_location.services.yml
1 service uses DrupalCodeBuilderTestSampleData
- test_dummy_module_write_location.drupal_code_builder_test_sample_data in tests/
modules/ test_dummy_module_write_location/ test_dummy_module_write_location.services.yml - Drupal\test_dummy_module_write_location\DrupalCodeBuilderTestSampleData
File
- tests/
modules/ test_dummy_module_write_location/ src/ DrupalCodeBuilderTestSampleData.php, line 13
Namespace
Drupal\test_dummy_module_write_locationView source
class DrupalCodeBuilderTestSampleData extends DrupalCodeBuilder {
/**
* {@inheritdoc}
*/
protected function doLoadLibrary() {
$environment = new TestSampleDataEnvironment();
\DrupalCodeBuilder\Factory::setEnvironment($environment)
->setCoreVersionNumber(\Drupal::VERSION);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
DrupalCodeBuilder:: |
protected | property | Whether the library has been initialized. | |
DrupalCodeBuilder:: |
public | function | Gets a task handler from the library. | |
DrupalCodeBuilder:: |
public | function | Loads the Drupal Coder Builder library and sets the environment. | |
DrupalCodeBuilderTestSampleData:: |
protected | function |
Helper for loadLibrary() for ease of overriding. Overrides DrupalCodeBuilder:: |