tamper-8.x-1.x-dev/tests/src/Functional/Plugin/Tamper/UrlDecodeTest.php
tests/src/Functional/Plugin/Tamper/UrlDecodeTest.php
<?php namespace Drupal\Tests\tamper\Functional\Plugin\Tamper; /** * Tests the url decode plugin. * * @coversDefaultClass \Drupal\tamper\Plugin\Tamper\UrlDecode * @group tamper */ class UrlDecodeTest extends TamperPluginTestBase { /** * The ID of the plugin to test. * * @var string */ protected static $pluginId = 'url_decode'; /** * {@inheritdoc} */ public static function formDataProvider(): array { return [ 'no values' => [ 'expected' => [ 'method' => 'rawurldecode', ], ], 'with values' => [ 'expected' => [ 'method' => 'urldecode', ], 'edit' => [ 'method' => 'urldecode', ], ], ]; } }