public function UrlEncodeTest::testUrlEncodeNumeric in Tamper 8
Tests url encoding of numeric input using the legacy method.
File
- tests/
src/ Unit/ Plugin/ Tamper/ UrlEncodeTest.php, line 59
Class
- UrlEncodeTest
- Tests the url encode plugin.
Namespace
Drupal\Tests\tamper\Unit\Plugin\TamperCode
public function testUrlEncodeNumeric() {
$this
->expectException(TamperException::class);
$this
->expectExceptionMessage('Input should be a string.');
$config = [
UrlEncode::SETTING_METHOD => 'urlencode',
];
$plugin = new UrlEncode($config, 'url_encode', [], $this
->getMockSourceDefinition());
$plugin
->tamper(14567);
}