function TwigMarkupInterfaceTest::testMarkupInterfaceEmpty
Same name in other branches
- 9 core/tests/Drupal/KernelTests/Core/Theme/TwigMarkupInterfaceTest.php \Drupal\KernelTests\Core\Theme\TwigMarkupInterfaceTest::testMarkupInterfaceEmpty()
- 8.9.x core/tests/Drupal/KernelTests/Core/Theme/TwigMarkupInterfaceTest.php \Drupal\KernelTests\Core\Theme\TwigMarkupInterfaceTest::testMarkupInterfaceEmpty()
- 10 core/tests/Drupal/KernelTests/Core/Theme/TwigMarkupInterfaceTest.php \Drupal\KernelTests\Core\Theme\TwigMarkupInterfaceTest::testMarkupInterfaceEmpty()
@dataProvider providerTestMarkupInterfaceEmpty
File
-
core/
tests/ Drupal/ KernelTests/ Core/ Theme/ TwigMarkupInterfaceTest.php, line 34
Class
- TwigMarkupInterfaceTest
- Tests Twig with MarkupInterface objects.
Namespace
Drupal\KernelTests\Core\ThemeCode
public function testMarkupInterfaceEmpty($expected, $variable) : void {
$this->assertSame($expected, (string) $this->renderObjectWithTwig($variable));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.