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

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

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

/**
 * Tests the implode plugin.
 *
 * @coversDefaultClass \Drupal\tamper\Plugin\Tamper\Implode
 * @group tamper
 */
class ImplodeTest extends TamperPluginTestBase {

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

  /**
   * {@inheritdoc}
   */
  public static function formDataProvider(): array {
    return [
      'no values' => [
        'expected' => [
          'glue' => ',',
        ],
      ],
      'with values' => [
        'expected' => [
          'glue' => '|',
        ],
        'edit' => [
          'glue' => '|',
        ],
      ],
      'special chars' => [
        'expected' => [
          'glue' => '%n',
        ],
        'edit' => [
          'glue' => '%n',
        ],
      ],
    ];
  }

}

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

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