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

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

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

/**
 * Tests the encode / decode plugin.
 *
 * @coversDefaultClass \Drupal\tamper\Plugin\Tamper\Encode
 *
 * @group tamper
 */
class EncodeTest extends TamperPluginTestBase {

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

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

}

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

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