function TwigExtensionTest::testRenderVarEarlyReturn
Same name and namespace in other branches
- 10 core/tests/Drupal/Tests/Core/Template/TwigExtensionTest.php \Drupal\Tests\Core\Template\TwigExtensionTest::testRenderVarEarlyReturn()
- 9 core/tests/Drupal/Tests/Core/Template/TwigExtensionTest.php \Drupal\Tests\Core\Template\TwigExtensionTest::testRenderVarEarlyReturn()
Tests render var early return.
Attributes
#[DataProvider('providerTestRenderVarEarlyReturn')]
File
-
core/
tests/ Drupal/ Tests/ Core/ Template/ TwigExtensionTest.php, line 379
Class
- TwigExtensionTest
- Tests the twig extension.
Namespace
Drupal\Tests\Core\TemplateCode
public function testRenderVarEarlyReturn($expected, $input) : void {
$result = $this->systemUnderTest
->renderVar($input);
$this->assertSame($expected, $result);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.