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