google_tag_events-8.x-1.x-dev/tests/src/Functional/GoogleTagEventsTestsBase.php

tests/src/Functional/GoogleTagEventsTestsBase.php
<?php

namespace Drupal\Tests\google_tag_events\Functional;

use Drupal\google_tag_events\Form\SettingsForm;
use Drupal\Tests\BrowserTestBase;

/**
 * Provides setup and helper methods for GTM Events tests.
 */
abstract class GoogleTagEventsTestsBase extends BrowserTestBase {

  /**
   * {@inheritdoc}
   */
  protected static $modules = [
    'google_tag',
    'google_tag_events',
    'gtm_events_test',
  ];

  /**
   * {@inheritdoc}
   */
  protected $defaultTheme = 'starterkit_theme';

  /**
   * {@inheritdoc}
   */
  protected function setUp(): void {
    parent::setUp();

    // Enable debug mode.
    $this->config(SettingsForm::CONFIG_NAME)
      ->set('debug_mode', TRUE)
      ->save();
  }

}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc