You are here

DevelGenerateBrowserTestBase.php in Devel 4.x

File

devel_generate/tests/src/Functional/DevelGenerateBrowserTestBase.php
View source
<?php

namespace Drupal\Tests\devel_generate\Functional;

use Drupal\Tests\BrowserTestBase;
use Drupal\Tests\devel_generate\Traits\DevelGenerateSetupTrait;

/**
 * Base class for devel_generate functional browser tests.
 *
 * DevelGenerateCommandsTest should not extend this class so that it can remain
 * independent and be used as a cut-and-paste example for other developers.
 */
abstract class DevelGenerateBrowserTestBase extends BrowserTestBase {
  use DevelGenerateSetupTrait;

  /**
   * Modules to enable.
   *
   * Note: Webprofiler is not being tested here directly, but is enabled to help
   * highlight any places where it may interfere with DevelGenerate processing.
   *
   * @var array
   */
  public static $modules = [
    'content_translation',
    'devel',
    'devel_generate',
    'language',
    'menu_ui',
    'node',
    'comment',
    'taxonomy',
    'path',
    'webprofiler',
  ];

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

  /**
   * Prepares the testing environment.
   */
  public function setUp() {
    parent::setUp();
    $this
      ->setUpData();
  }

}

Classes

Namesort descending Description
DevelGenerateBrowserTestBase Base class for devel_generate functional browser tests.