You are here

trait ApcuRawBackendGeneralTestCaseTrait in Supercache 2.0.x

Same name and namespace in other branches
  1. 8 src/Tests/Cache/ApcuRawBackendGeneralTestCaseTrait.php \Drupal\supercache\Tests\Cache\ApcuRawBackendGeneralTestCaseTrait

Hierarchy

File

src/Tests/Cache/ApcuRawBackendGeneralTestCaseTrait.php, line 14

Namespace

Drupal\supercache\Tests\Cache
View source
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() {
  }

}

Members