migrate_conditions-1.0.0-beta1/tests/src/Unit/condition/DefaultConditionTest.php

tests/src/Unit/condition/DefaultConditionTest.php
<?php

namespace Drupal\Tests\migrate_conditions\Unit\condition;

/**
 * @coversDefaultClass \Drupal\migrate_conditions\Plugin\migrate_conditions\condition\DefaultCondition
 * @group migrate_conditions
 */
class DefaultConditionTest extends ConditionTestBase {

  /**
   * {@inheritdoc}
   */
  protected $conditionClass = 'Drupal\migrate_conditions\Plugin\migrate_conditions\condition\DefaultCondition';

  /**
   * {@inheritdoc}
   */
  protected $conditionId = 'default';

  /**
   * Data provider for ::testEvaluate().
   */
  public static function providerTestEvaluate() {
    return [
      [
        'source' => 123,
        'configuration' => [],
        'property_value' => 567,
        'expected' => TRUE,
      ],
      [
        'source' => NULL,
        'configuration' => [],
        'property_value' => 567,
        'expected' => TRUE,
      ],
    ];
  }

}

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

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