protected function WebformBrowserTestTrait::purgeSubmissions in Webform 6.x
Same name and namespace in other branches
- 8.5 tests/src/Traits/WebformBrowserTestTrait.php \Drupal\Tests\webform\Traits\WebformBrowserTestTrait::purgeSubmissions()
Purge all submission before the webform.module is uninstalled.
6 calls to WebformBrowserTestTrait::purgeSubmissions()
- WebformBrowserTestBase::tearDown in tests/
src/ Functional/ WebformBrowserTestBase.php - WebformBrowserTestBaseTest::testWebformBase in tests/
src/ Functional/ WebformBrowserTestBaseTest.php - Test base helper methods.
- WebformElementValidateUniqueTest::testValidateUnique in tests/
src/ Functional/ Element/ WebformElementValidateUniqueTest.php - Tests element validate unique.
- WebformGroupBrowserTestBase::tearDown in modules/
webform_group/ tests/ src/ Functional/ WebformGroupBrowserTestBase.php - WebformOptionsLimitSourceEntityTest::testSourceEnity in modules/
webform_options_limit/ tests/ src/ Functional/ WebformOptionsLimitSourceEntityTest.php - Test options limit source entity.
1 method overrides WebformBrowserTestTrait::purgeSubmissions()
- WebformScheduledEmailTest::purgeSubmissions in modules/
webform_scheduled_email/ tests/ src/ Functional/ WebformScheduledEmailTest.php - Purge all submission before the webform.module is uninstalled.
File
- tests/
src/ Traits/ WebformBrowserTestTrait.php, line 318
Class
- WebformBrowserTestTrait
- Provides convenience methods for webform assertions in browser tests.
Namespace
Drupal\Tests\webform\TraitsCode
protected function purgeSubmissions() {
\Drupal::database()
->query('DELETE FROM {webform_submission}');
}