public function EncodeTest::testBase64Encode in Tamper 8
Test base64_encode.
File
- tests/
src/ Unit/ Plugin/ Tamper/ EncodeTest.php, line 72
Class
- EncodeTest
- Tests the encode / decode plugin.
Namespace
Drupal\Tests\tamper\Unit\Plugin\TamperCode
public function testBase64Encode() {
$config = [
Encode::SETTING_MODE => 'base64_encode',
];
$plugin = new Encode($config, 'encode', [], $this
->getMockSourceDefinition());
$this
->assertEquals('YWJjZGVmIDEyMyBAI2B8XCIkJSYvKCk9PydeKg==', $plugin
->tamper('abcdef 123 @#`|\\"$%&/()=?\'^*'));
}