You are here

public function TwigMarkupInterfaceTest::testMarkupInterfaceEmpty in Drupal 10

Same name and namespace in other branches
  1. 8 core/tests/Drupal/KernelTests/Core/Theme/TwigMarkupInterfaceTest.php \Drupal\KernelTests\Core\Theme\TwigMarkupInterfaceTest::testMarkupInterfaceEmpty()
  2. 9 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 39
Contains \Drupal\KernelTests\Core\Theme\TwigMarkupInterfaceTest.

Class

TwigMarkupInterfaceTest
Tests Twig with MarkupInterface objects.

Namespace

Drupal\KernelTests\Core\Theme

Code

public function testMarkupInterfaceEmpty($expected, $variable) {
  $this
    ->assertEquals($expected, $this
    ->renderObjectWithTwig($variable));
}