protected function WebformBrowserTestTrait::reloadSubmission in Webform 6.x
Same name and namespace in other branches
- 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\TraitsCode
protected function reloadSubmission($id) {
$storage = \Drupal::entityTypeManager()
->getStorage('webform_submission');
$storage
->resetCache([
$id,
]);
return $storage
->load($id);
}