You are here

public function DrupalCacheAdapterTest::testGetMetadataFail 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::testGetMetadataFail()
  2. 3.x tests/src/Unit/Flysystem/Adapter/DrupalCacheAdapterTest.php \Drupal\Tests\flysystem\Unit\Flysystem\Adapter\DrupalCacheAdapterTest::testGetMetadataFail()
  3. 2.0.x tests/src/Unit/Flysystem/Adapter/DrupalCacheAdapterTest.php \Drupal\Tests\flysystem\Unit\Flysystem\Adapter\DrupalCacheAdapterTest::testGetMetadataFail()

File

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

Class

DrupalCacheAdapterTest
Test the Drupal Cache Adapter.

Namespace

Drupal\Tests\flysystem\Unit\Flysystem\Adapter

Code

public function testGetMetadataFail() {
  $this->adapter
    ->getMetadata(static::FILE)
    ->willReturn([
    'type' => 'dir',
  ]);
  $this
    ->assertSame('dir', $this->cacheAdapter
    ->getMetadata(static::FILE)['type']);
}