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