function FilterImageLazyLoadTest::testProcess

Same name and namespace in other branches
  1. 11.x core/modules/filter/tests/src/Unit/FilterImageLazyLoadTest.php \Drupal\Tests\filter\Unit\FilterImageLazyLoadTest::testProcess()

@covers ::process

@dataProvider providerHtml

Parameters

string $html: Input HTML.

string $expected: The expected output string.

File

core/modules/filter/tests/src/Unit/FilterImageLazyLoadTest.php, line 39

Class

FilterImageLazyLoadTest
@coversDefaultClass <a href="/api/drupal/core%21modules%21filter%21src%21Plugin%21Filter%21FilterImageLazyLoad.php/class/FilterImageLazyLoad/10" title="Provides a filter to lazy load tracked images." class="local">\Drupal\filter\Plugin\Filter\FilterImageLazyLoad</a> @group editor

Namespace

Drupal\Tests\filter\Unit

Code

public function testProcess(string $html, string $expected) : void {
    $this->assertSame($expected, $this->filter
        ->process($html, 'en')
        ->getProcessedText());
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.