tamper-8.x-1.x-dev/tests/src/Functional/Plugin/Tamper/ConvertCaseTest.php

tests/src/Functional/Plugin/Tamper/ConvertCaseTest.php
<?php

namespace Drupal\Tests\tamper\Functional\Plugin\Tamper;

/**
 * Tests the convert case plugin.
 *
 * @coversDefaultClass \Drupal\tamper\Plugin\Tamper\ConvertCase
 * @group tamper
 */
class ConvertCaseTest extends TamperPluginTestBase {

  /**
   * The ID of the plugin to test.
   *
   * @var string
   */
  protected static $pluginId = 'convert_case';

  /**
   * {@inheritdoc}
   */
  public static function formDataProvider(): array {
    return [
      'no values' => [
        'expected' => [
          'operation' => 'ucfirst',
        ],
      ],
      'with values' => [
        'expected' => [
          'operation' => 'ucwords',
        ],
        'edit' => [
          'operation' => 'ucwords',
        ],
      ],
    ];
  }

}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc