You are here

ApcuRawBackendGeneralTestCaseTrait.php in Supercache 8

Same filename and directory in other branches
  1. 2.0.x src/Tests/Cache/ApcuRawBackendGeneralTestCaseTrait.php

File

src/Tests/Cache/ApcuRawBackendGeneralTestCaseTrait.php
View source
<?php

namespace Drupal\supercache\Tests\Cache;

use Drupal\supercache\Tests\Generic\Cache\BackendGeneralTestCase;
use Drupal\supercache\Cache\ApcuRawBackendFactory;
use Drupal\supercache\CouchbaseManager;
use Drupal\supercache\Cache\DummyTagChecksum;
use Drupal\Core\Site\Settings;
trait ApcuRawBackendGeneralTestCaseTrait {
  public function setUp() {
    apcu_clear_cache();
    $app_root = '/';
    $site_path = uniqid();
    $factory = new ApcuRawBackendFactory($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');
  }
  public function tearDown() {
  }

}