You are here

protected function WebformBrowserTestTrait::reloadWebform in Webform 6.x

Same name and namespace in other branches
  1. 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\Traits

Code

protected function reloadWebform($id) {
  $storage = \Drupal::entityTypeManager()
    ->getStorage('webform');
  $storage
    ->resetCache([
    $id,
  ]);
  return $storage
    ->load($id);
}