You are here

protected function WebformBrowserTestTrait::reloadSubmission in Webform 6.x

Same name and namespace in other branches
  1. 8.5 tests/src/Traits/WebformBrowserTestTrait.php \Drupal\Tests\webform\Traits\WebformBrowserTestTrait::reloadSubmission()

Reload a test webform submission.

Parameters

string $id: Webform id.

Return value

\Drupal\webform\WebformSubmissionInterface|null A webform submission.

1 call to WebformBrowserTestTrait::reloadSubmission()
WebformSubmissionListBuilderBulkOperationsTest::testResults in tests/src/Functional/WebformSubmissionListBuilderBulkOperationsTest.php
Tests results.

File

tests/src/Traits/WebformBrowserTestTrait.php, line 243

Class

WebformBrowserTestTrait
Provides convenience methods for webform assertions in browser tests.

Namespace

Drupal\Tests\webform\Traits

Code

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