protected function AssertContentTrait::setDrupalSettings in Drupal 8
Same name and namespace in other branches
- 9 core/tests/Drupal/KernelTests/AssertContentTrait.php \Drupal\KernelTests\AssertContentTrait::setDrupalSettings()
- 10 core/tests/Drupal/KernelTests/AssertContentTrait.php \Drupal\KernelTests\AssertContentTrait::setDrupalSettings()
Sets the value of drupalSettings for the currently-loaded page.
Variable drupalSettings refers to the drupalSettings JavaScript variable.
1 call to AssertContentTrait::setDrupalSettings()
- WebTestBase::drupalProcessAjaxResponse in core/
modules/ simpletest/ src/ WebTestBase.php - Processes an AJAX response into current content.
File
- core/
tests/ Drupal/ KernelTests/ AssertContentTrait.php, line 114
Class
- AssertContentTrait
- Provides test methods to assert content.
Namespace
Drupal\KernelTestsCode
protected function setDrupalSettings($settings) {
$this->drupalSettings = $settings;
}