public function ConvertCaseTest::testUpperCaseWithSingleValue in Tamper 8
Test convert to upper case.
File
- tests/
src/ Unit/ Plugin/ Tamper/ ConvertCaseTest.php, line 26
Class
- ConvertCaseTest
- Tests the convert case plugin.
Namespace
Drupal\Tests\tamper\Unit\Plugin\TamperCode
public function testUpperCaseWithSingleValue() {
$config = [
ConvertCase::SETTING_OPERATION => 'strtoupper',
];
$plugin = new ConvertCase($config, 'convert_case', [], $this
->getMockSourceDefinition());
$this
->assertEquals('FOO BAR', $plugin
->tamper('foo bar'));
}