function TwigDeprecationsTest::testThemeTestDeprecations

Same name in other branches
  1. 11.x core/tests/Drupal/KernelTests/Core/Theme/TwigDeprecationsTest.php \Drupal\KernelTests\Core\Theme\TwigDeprecationsTest::testThemeTestDeprecations()

Test theme_test_deprecations_preprocess renders without deprecations.

File

core/tests/Drupal/KernelTests/Core/Theme/TwigDeprecationsTest.php, line 44

Class

TwigDeprecationsTest
Tests deprecating variables passed to twig templates.

Namespace

Drupal\KernelTests\Core\Theme

Code

public function testThemeTestDeprecations() : void {
    $this->assertRendered('foo|set_var|bar', []);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.