protected function WebformBrowserTestTrait::loadSubmission in Webform 6.x
Same name and namespace in other branches
- 8.5 tests/src/Traits/WebformBrowserTestTrait.php \Drupal\Tests\webform\Traits\WebformBrowserTestTrait::loadSubmission()
Load the specified webform submission from the storage.
Parameters
int $sid: The submission identifier.
Return value
\Drupal\webform\WebformSubmissionInterface The loaded webform submission.
3 calls to WebformBrowserTestTrait::loadSubmission()
- WebformBrowserTestBaseTest::testWebformBase in tests/
src/ Functional/ WebformBrowserTestBaseTest.php - Test base helper methods.
- WebformSettingsConfidentialTest::testConfidential in tests/
src/ Functional/ Settings/ WebformSettingsConfidentialTest.php - Tests webform confidential setting.
- WebformViewsBulkFormTest::testViewsBulkForm in tests/
src/ Functional/ Views/ WebformViewsBulkFormTest.php - Tests the webform views bulk form.
File
- tests/
src/ Traits/ WebformBrowserTestTrait.php, line 308
Class
- WebformBrowserTestTrait
- Provides convenience methods for webform assertions in browser tests.
Namespace
Drupal\Tests\webform\TraitsCode
protected function loadSubmission($sid) {
/** @var \Drupal\webform\WebformSubmissionStorage $storage */
$storage = $this->container
->get('entity_type.manager')
->getStorage('webform_submission');
$storage
->resetCache([
$sid,
]);
return $storage
->load($sid);
}