You are here

public function ConvertCaseTest::testUpperCaseWordsWithSingleValue in Tamper 8

Test convert to upper case words.

File

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

Class

ConvertCaseTest
Tests the convert case plugin.

Namespace

Drupal\Tests\tamper\Unit\Plugin\Tamper

Code

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