You are here

protected function WebformBrowserTestTrait::loadWebforms in Webform 6.x

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

Lazy load a test webforms.

Parameters

array $ids: Webform ids.

2 calls to WebformBrowserTestTrait::loadWebforms()
WebformBrowserTestBase::setUp in tests/src/Functional/WebformBrowserTestBase.php
WebformWebDriverTestBase::setUp in tests/src/FunctionalJavascript/WebformWebDriverTestBase.php

File

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

Class

WebformBrowserTestTrait
Provides convenience methods for webform assertions in browser tests.

Namespace

Drupal\Tests\webform\Traits

Code

protected function loadWebforms(array $ids) {
  foreach ($ids as $id) {
    $this
      ->loadWebform($id);
  }
  $this
    ->pass(new FormattableMarkup('Loaded webforms: %webforms.', [
    '%webforms' => implode(', ', $ids),
  ]));
}