<commit_before>{% extends "base/class.php.twig" %}

{% block file_path %}
\Drupal\{{ module }}\Tests\LoadTest
{% endblock %}

{% block namespace_class %}
namespace Drupal\{{ module }}\Tests;
{% endblock %}

{% block use_class %}
use Drupal\Core\Url;
use Drupal\simpletest\WebTestBase;
{% endblock %}

{% block class_declaration %}
/**
 * Simple test to ensure that main page loads with module enabled.
 *
 * @group {{ module }}
 */
class LoadTest extends WebTestBase{% endblock %}
{% block class_methods %}
  /**
   * Modules to enable.
   *
   * @var array
   */
  public static $modules = ['{{ module }}'];

  /**
   * A user with permission to administer site configuration.
   *
   * @var \Drupal\user\UserInterface
   */
  protected $user;

  /**
   * {@inheritdoc}
   */
  protected function setUp() {
    parent::setUp();
    $this->user = $this->drupalCreateUser(['administer site configuration']);
    $this->drupalLogin($this->user);
  }

  /**
   * Tests that the home page loads with a 200 response.
   */
  public function testLoad() {
    $this->drupalGet(Url::fromRoute('<front>'));
    $this->assertResponse(200);
  }
{% endblock %}<commit_msg>[generate:module] Fix test module machine_name. (#2818)<commit_after>{% extends "base/class.php.twig" %}

{% block file_path %}
\Drupal\{{ machine_name }}\Tests\LoadTest
{% endblock %}

{% block namespace_class %}
namespace Drupal\{{ machine_name }}\Tests;
{% endblock %}

{% block use_class %}
use Drupal\Core\Url;
use Drupal\simpletest\WebTestBase;
{% endblock %}

{% block class_declaration %}
/**
 * Simple test to ensure that main page loads with module enabled.
 *
 * @group {{ machine_name }}
 */
class LoadTest extends WebTestBase{% endblock %}
{% block class_methods %}
  /**
   * Modules to enable.
   *
   * @var array
   */
  public static $modules = ['{{ machine_name }}'];

  /**
   * A user with permission to administer site configuration.
   *
   * @var \Drupal\user\UserInterface
   */
  protected $user;

  /**
   * {@inheritdoc}
   */
  protected function setUp() {
    parent::setUp();
    $this->user = $this->drupalCreateUser(['administer site configuration']);
    $this->drupalLogin($this->user);
  }

  /**
   * Tests that the home page loads with a 200 response.
   */
  public function testLoad() {
    $this->drupalGet(Url::fromRoute('<front>'));
    $this->assertResponse(200);
  }
{% endblock %}
{'fraction_non_alphanumeric': 0.1663872590108969, 'fraction_numerical': 0.006705783738474434, 'mean_word_length': 3.445065176908752, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2881427', 'n_tokens_mistral': 803, 'n_tokens_neox': 745, 'n_words': 189}