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