You are here

public function DrupalCacheAdapterTest::setup in Flysystem 3.0.x

Same name and namespace in other branches
  1. 8 tests/src/Unit/Flysystem/Adapter/DrupalCacheAdapterTest.php \Drupal\Tests\flysystem\Unit\Flysystem\Adapter\DrupalCacheAdapterTest::setup()
  2. 3.x tests/src/Unit/Flysystem/Adapter/DrupalCacheAdapterTest.php \Drupal\Tests\flysystem\Unit\Flysystem\Adapter\DrupalCacheAdapterTest::setup()
  3. 2.0.x tests/src/Unit/Flysystem/Adapter/DrupalCacheAdapterTest.php \Drupal\Tests\flysystem\Unit\Flysystem\Adapter\DrupalCacheAdapterTest::setup()

File

tests/src/Unit/Flysystem/Adapter/DrupalCacheAdapterTest.php, line 60

Class

DrupalCacheAdapterTest
Test the Drupal Cache Adapter.

Namespace

Drupal\Tests\flysystem\Unit\Flysystem\Adapter

Code

public function setup() {
  $this->cacheItemBackend = new CacheItemBackend(static::SCHEME, new MemoryBackend('foo'));
  $this->adapter = $this
    ->prophesize(AdapterInterface::class);
  $this->cacheAdapter = new DrupalCacheAdapter(static::SCHEME, $this->adapter
    ->reveal(), $this->cacheItemBackend);
}