
| Current Path : /var/www/html/12park/web/modules/contrib/webform/tests/src/Functional/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/12park/web/modules/contrib/webform/tests/src/Functional/WebformBrowserTestBase.php |
<?php
namespace Drupal\Tests\webform\Functional;
use Drupal\Core\StringTranslation\StringTranslationTrait;
use Drupal\Core\Test\AssertMailTrait;
use Drupal\Tests\BrowserTestBase;
use Drupal\Tests\webform\Traits\WebformBrowserTestTrait;
/**
* Defines an abstract test base for webform tests.
*/
abstract class WebformBrowserTestBase extends BrowserTestBase {
use AssertMailTrait;
use WebformBrowserTestTrait;
use StringTranslationTrait;
/**
* Set default theme to stable.
*
* @var string
*/
protected $defaultTheme = 'stable9';
/**
* Modules to enable.
*
* @var array
*/
protected static $modules = ['webform'];
/**
* Webforms to load.
*
* @var array
*/
protected static $testWebforms = [];
/**
* {@inheritdoc}
*/
protected function setUp(): void {
parent::setUp();
$this->loadWebforms(static::$testWebforms);
}
/**
* {@inheritdoc}
*/
protected function tearDown(): void {
$this->purgeSubmissions();
parent::tearDown();
}
}