You are here

public function ConvertCaseTest::testUpperCaseFirstWithSingleValue in Tamper 8

Test convert to upper case first.

File

tests/src/Unit/Plugin/Tamper/ConvertCaseTest.php, line 74

Class

ConvertCaseTest
Tests the convert case plugin.

Namespace

Drupal\Tests\tamper\Unit\Plugin\Tamper

Code

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