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