protected static $modules =
[ 'language',
];
/**
* @dataProvider providerTestMarkupInterfaceEmpty
*/
public function testMarkupInterfaceEmpty($expected,
$variable) { $this->
assertSame($expected,
(string) $this->
renderObjectWithTwig($variable));
} /**
* Provide test examples.
*/
public function providerTestMarkupInterfaceEmpty() { return [ // The first argument to \Drupal\Core\StringTranslation\TranslatableMarkup
// is not supposed to be an empty string.
// phpcs:ignore Drupal.Semantics.FunctionT.EmptyString
'empty TranslatableMarkup' =>
['',
new TranslatableMarkup(''
)],