Welcome To Our Shell

Mister Spy & Souheyl Bypass Shell

Current Path : /var/www/html/ift/vendor/chi-teck/drupal-code-generator/templates/d7/

Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
Upload File :
Current File : /var/www/html/ift/vendor/chi-teck/drupal-code-generator/templates/d7/test.twig

<?php

/**
 * @file
 * Tests for {{ name }}.module.
 */

/**
 * Tests the functionality of the {{ name }} module.
 */
class {{ class }} extends DrupalWebTestCase {

  /**
   * A user with permission to administer {{ machine_name }} configuration.
   *
   * @var object
   */
  protected $admin_user;

  public static function getInfo() {
    return array(
      'name' => '{{ name }}',
      'description' => 'Test description',
      'group' => '{{ machine_name }}',
    );
  }

  function setUp() {
    parent::setUp(array('{{ machine_name }}'));

    // Create admin account.
    $this->admin_user = $this->drupalCreateUser(array('administer {{ machine_name }} configuration'));

    $this->drupalLogin($this->admin_user);
  }

  /**
   * Tests configuration form.
   */
  function testAdminForm() {
    $fields = array(
      '{{ machine_name }}_setting_1' => 'test',
      '{{ machine_name }}_setting_2' => 1,
      '{{ machine_name }}_setting_3' => 1,
    );
    $this->drupalPost('admin/config/system/{{ machine_name }}', $fields, t('Save configuration'));

    $this->assertFieldByName('{{ machine_name }}_setting_1', 'test');
    $this->assertFieldByName('{{ machine_name }}_setting_2', 1);
    $this->assertFieldByName('{{ machine_name }}_setting_3', 1);
    $this->assertRaw(t('The configuration options have been saved.'));
  }

}

bypass 1.0, Devloped By El Moujahidin (the source has been moved and devloped)
Email: contact@elmoujehidin.net bypass 1.0, Devloped By El Moujahidin (the source has been moved and devloped) Email: contact@elmoujehidin.net