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

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

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

/**
 * Tests the absolute_url plugin.
 *
 * @coversDefaultClass \Drupal\tamper\Plugin\Tamper\AbsoluteUrl
 * @group tamper
 */
class AbsoluteUrlTest extends TamperPluginTestBase {

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

  /**
   * {@inheritdoc}
   */
  public static function formDataProvider(): array {
    return [
      'no values' => [
        'expected' => [],
        'edit' => [],
        'errors' => [
          'Base URL source field is required.',
        ],
      ],
      'with values' => [
        'expected' => [
          'base_url_source' => 'baz',
        ],
        'edit' => [
          'base_url_source' => 'baz',
        ],
      ],
    ];
  }

}

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

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