eventbrite_one_way_sync-1.0.0/src/Utilities/Mockables.php

src/Utilities/Mockables.php
<?php

namespace Drupal\eventbrite_one_way_sync\Utilities;

use Drupal\Core\Access\AccessResult;
// @codingStandardsIgnoreStart
use Drupal\eventbrite_one_way_sync\EventbriteOneWaySync;
// @codingStandardsIgnoreEnd

/**
 * A quick way to fetch mockable service singletons.
 */
trait Mockables {

  /**
   * Mockable wrapper around AccessResult::allowed().
   */
  public function accessAllowed() {
    return AccessResult::allowed();
  }

  /**
   * Mockable wrapper around AccessResult::forbidden().
   */
  public function accessForbidden() {
    return AccessResult::forbidden();
  }

}

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

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