You are here

public function HtmlTitleFilterTest::testDecodeToMarkup in HTML Title 8

Tests HtmlTitleFilter::decodeToText().

@dataProvider providerDecodeToMarkup

Parameters

string|array $input: The input passed to decodeToText().

\Drupal\Core\Render\Markup $expected: The expected result from calling the function.

See also

HtmlTitleFilter::decodeToMarkup()

File

tests/src/Unit/HtmlTitleFilterTest.php, line 87

Class

HtmlTitleFilterTest
@coversDefaultClass \Drupal\html_title\HtmlTitleFilter

Namespace

Drupal\Tests\html_title\Unit

Code

public function testDecodeToMarkup($input, Markup $expected) {
  $this
    ->assertEquals($expected, $this->htmlTitleFilter
    ->decodeToMarkup($input));
}