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

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

namespace Drupal\wincachedrupal\Tests\Cache;

use Drupal\wincachedrupal\Cache\WincacheRawBackendFactory;

/**
 * Tests WincacheRawBackend trit.
 *
 * @group wincachedrupal_supercache
 */
trait RawBackendGeneralTestCaseTrait {

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

    // 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