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