protected function WebformBrowserTestTrait::reloadWebform in Webform 6.x
Same name and namespace in other branches
- 8.5 tests/src/Traits/WebformBrowserTestTrait.php \Drupal\Tests\webform\Traits\WebformBrowserTestTrait::reloadWebform()
Reload a test webform.
Parameters
string $id: Webform id.
Return value
\Drupal\webform\WebformInterface|null A webform.
3 calls to WebformBrowserTestTrait::reloadWebform()
- WebformListBuilderTest::testBulkOperations in tests/
src/ Functional/ WebformListBuilderTest.php - Tests the webform overview bulk operations.
- WebformThirdPartySettingsTest::testThirdPartySettings in tests/
src/ Functional/ WebformThirdPartySettingsTest.php - Tests webform third party settings.
- WebformVariantApplyTest::testVariantApply in tests/
src/ Functional/ Variant/ WebformVariantApplyTest.php - Test variant apply.
File
- tests/
src/ Traits/ WebformBrowserTestTrait.php, line 228
Class
- WebformBrowserTestTrait
- Provides convenience methods for webform assertions in browser tests.
Namespace
Drupal\Tests\webform\TraitsCode
protected function reloadWebform($id) {
$storage = \Drupal::entityTypeManager()
->getStorage('webform');
$storage
->resetCache([
$id,
]);
return $storage
->load($id);
}