You are here

public function HtmlTitleFilterTest::testDecodeToText in HTML Title 8

Tests HtmlTitleFilter::decodeToText().

@dataProvider providerDecodeToText

Parameters

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

string $expected: The expected result from calling the function.

See also

HtmlTitleFilter::decodeToText()

File

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

Class

HtmlTitleFilterTest
@coversDefaultClass \Drupal\html_title\HtmlTitleFilter

Namespace

Drupal\Tests\html_title\Unit

Code

public function testDecodeToText($input, string $expected) {
  $this
    ->assertEquals($expected, $this->htmlTitleFilter
    ->decodeToText($input));
}