wincachedrupal-8.0.2/src/Tests/Cache/BackendGeneralTestCaseTrait.php

src/Tests/Cache/BackendGeneralTestCaseTrait.php
<?php

namespace Drupal\wincachedrupal\Tests\Cache;

use Drupal\wincachedrupal\Cache\WincacheBackendFactory;
use Drupal\supercache\Cache\DummyTagChecksum;

/**
 * Tests WincacheBackendFactory.
 *
 * @group wincachedrupal
 */
trait BackendGeneralTestCaseTrait {

  /**
   * {@inheritdoc}
   */
  public function setUp() {
    \Drupal\wincachedrupal\WincacheWrapper::wincachedrupal_ucache_clear();
    $app_root = '/';
    $site_path = uniqid();
    $factory = new WincacheBackendFactory($app_root, $site_path, new DummyTagChecksum());

    // The aim of this setup is to get two functional backend instances.
    $this->backend = $factory->get('test_binary');
    $this->backend2 = $factory->get('test_binary_alt');

    parent::setup();
  }

}

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

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