currency-8.x-3.3/tests/src/Unit/Event/CurrencyEventsTest.php

tests/src/Unit/Event/CurrencyEventsTest.php
<?php

namespace Drupal\Tests\currency\Unit\Event;

use Drupal\currency\Event\CurrencyEvents;
use Drupal\Tests\UnitTestCase;

/**
 * Tests the currency events class.
 *
 * @coversDefaultClass \Drupal\currency\Event\CurrencyEvents
 *
 * @group Currency
 */
class CurrencyEventsTest extends UnitTestCase {

  /**
   * Tests constants with event names.
   */
  public function testEventNames() {
    $class = new \ReflectionClass(CurrencyEvents::class);
    foreach ($class->getConstants() as $event_name) {
      // Make sure that every event name is properly namespaced.
      $this->assertSame(0, strpos($event_name, 'drupal.currency.'));
    }
  }

}

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

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