public function ConvertCaseTest::testUpperCaseWithMultipleValues in Tamper 8
Test convert to upper case.
File
- tests/
src/ Unit/ Plugin/ Tamper/ ConvertCaseTest.php, line 37
Class
- ConvertCaseTest
- Tests the convert case plugin.
Namespace
Drupal\Tests\tamper\Unit\Plugin\TamperCode
public function testUpperCaseWithMultipleValues() {
$this
->expectException(TamperException::class);
$this
->expectExceptionMessage('Input should be a string.');
$config = [
ConvertCase::SETTING_OPERATION => 'strtoupper',
];
$plugin = new ConvertCase($config, 'convert_case', [], $this
->getMockSourceDefinition());
$plugin
->tamper([
'foo',
'bar',
]);
}