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

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

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

/**
 * Tests the number format plugin.
 *
 * @coversDefaultClass \Drupal\tamper\Plugin\Tamper\NumberFormat
 * @group tamper
 */
class NumberFormatTest extends TamperPluginTestBase {

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

  /**
   * {@inheritdoc}
   */
  public static function formDataProvider(): array {
    return [
      'no values' => [
        'expected' => [
          'decimals' => 0,
          'dec_point' => '.',
          'thousands_sep' => ',',
        ],
      ],
      'with values' => [
        'expected' => [
          'decimals' => 2,
          'dec_point' => ',',
          'thousands_sep' => '.',
        ],
        'edit' => [
          'decimals' => 2,
          'dec_point' => ',',
          'thousands_sep' => '.',
        ],
      ],
    ];
  }

}

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

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