You are here

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\Tamper

Code

public function testLowerCaseWithSingleValue() {
  $config = [
    ConvertCase::SETTING_OPERATION => 'strtolower',
  ];
  $plugin = new ConvertCase($config, 'convert_case', [], $this
    ->getMockSourceDefinition());
  $this
    ->assertEquals('foo bar', $plugin
    ->tamper('fOo BAR'));
}