function StringTest::testPlaceholder

Tests String::placeholder().

See also

String::placeholder()

File

drupal/core/tests/Drupal/Tests/Component/Utility/StringTest.php, line 105
Contains \Drupal\Tests\Component\Utility\StringTest.

Class

StringTest
Tests string filtering.

Namespace

Drupal\Tests\Component\Utility

Code

function testPlaceholder() {
  $this
    ->assertEquals('<em class="placeholder">Some text</em>', String::placeholder('Some text'));
}