You are here

public function DrupalCacheAdapterTest::testGetSizeFail in Flysystem 8

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

File

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

Class

DrupalCacheAdapterTest
Test the Drupal Cache Adapter.

Namespace

Drupal\Tests\flysystem\Unit\Flysystem\Adapter

Code

public function testGetSizeFail() {
  $this->adapter
    ->getSize(static::FILE)
    ->willReturn([
    'size' => 123,
  ]);
  $this
    ->assertSame(123, $this->cacheAdapter
    ->getSize(static::FILE)['size']);
}