You are here

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

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_location
View source
class DrupalCodeBuilderTestSampleData extends DrupalCodeBuilder {

  /**
   * {@inheritdoc}
   */
  protected function doLoadLibrary() {
    $environment = new TestSampleDataEnvironment();
    \DrupalCodeBuilder\Factory::setEnvironment($environment)
      ->setCoreVersionNumber(\Drupal::VERSION);
  }

}

Members

Namesort descending Modifiers Type Description Overrides
DrupalCodeBuilder::$loaded protected property Whether the library has been initialized.
DrupalCodeBuilder::getTask public function Gets a task handler from the library.
DrupalCodeBuilder::loadLibrary public function Loads the Drupal Coder Builder library and sets the environment.
DrupalCodeBuilderTestSampleData::doLoadLibrary protected function Helper for loadLibrary() for ease of overriding. Overrides DrupalCodeBuilder::doLoadLibrary