You are here

DrupalCodeBuilderTestSampleData.php in Module Builder 8.3

File

tests/modules/test_dummy_module_write_location/src/DrupalCodeBuilderTestSampleData.php
View source
<?php

namespace Drupal\test_dummy_module_write_location;

use Drupal\module_builder\DrupalCodeBuilder;

/**
 * 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.
 */
class DrupalCodeBuilderTestSampleData extends DrupalCodeBuilder {

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

}

Classes

Namesort descending Description
DrupalCodeBuilderTestSampleData Uses the code analysis data that's part of Drupal Code Builder's test suite.