function UrlEncodeTest::testUrls

Same name in other branches
  1. 9 core/modules/migrate/tests/src/Unit/process/UrlEncodeTest.php \Drupal\Tests\migrate\Unit\process\UrlEncodeTest::testUrls()
  2. 8.9.x core/modules/migrate/tests/src/Unit/process/UrlEncodeTest.php \Drupal\Tests\migrate\Unit\process\UrlEncodeTest::testUrls()
  3. 11.x core/modules/migrate/tests/src/Unit/process/UrlEncodeTest.php \Drupal\Tests\migrate\Unit\process\UrlEncodeTest::testUrls()

Cover various encoding scenarios. @dataProvider urlDataProvider

File

core/modules/migrate/tests/src/Unit/process/UrlEncodeTest.php, line 46

Class

UrlEncodeTest
@coversDefaultClass \Drupal\migrate\Plugin\migrate\process\UrlEncode @group file

Namespace

Drupal\Tests\migrate\Unit\process

Code

public function testUrls($input, $output) : void {
    $this->assertEquals($output, $this->doTransform($input));
}

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