function FormattableMarkupTest::testNullPlaceholder
Same name in other branches
- 9 core/tests/Drupal/Tests/Component/Render/FormattableMarkupTest.php \Drupal\Tests\Component\Render\FormattableMarkupTest::testNullPlaceholder()
@covers ::__toString @dataProvider providerTestNullPlaceholder @group legacy
File
-
core/
tests/ Drupal/ Tests/ Component/ Render/ FormattableMarkupTest.php, line 62
Class
- FormattableMarkupTest
- Tests the TranslatableMarkup class.
Namespace
Drupal\Tests\Component\RenderCode
public function testNullPlaceholder(string $expected, string $string, array $arguments, string $expected_deprecation) : void {
$this->expectDeprecation($expected_deprecation);
$this->assertEquals($expected, (string) new FormattableMarkup($string, $arguments));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.