public function DrupalCacheAdapterTest::testUpdateSuccess in Flysystem 8
Same name and namespace in other branches
- 3.x tests/src/Unit/Flysystem/Adapter/DrupalCacheAdapterTest.php \Drupal\Tests\flysystem\Unit\Flysystem\Adapter\DrupalCacheAdapterTest::testUpdateSuccess()
- 2.0.x tests/src/Unit/Flysystem/Adapter/DrupalCacheAdapterTest.php \Drupal\Tests\flysystem\Unit\Flysystem\Adapter\DrupalCacheAdapterTest::testUpdateSuccess()
- 3.0.x tests/src/Unit/Flysystem/Adapter/DrupalCacheAdapterTest.php \Drupal\Tests\flysystem\Unit\Flysystem\Adapter\DrupalCacheAdapterTest::testUpdateSuccess()
File
- tests/
src/ Unit/ Flysystem/ Adapter/ DrupalCacheAdapterTest.php, line 92
Class
- DrupalCacheAdapterTest
- Test the Drupal Cache Adapter.
Namespace
Drupal\Tests\flysystem\Unit\Flysystem\AdapterCode
public function testUpdateSuccess() {
$config = new Config();
$this->adapter
->update(static::FILE, 'contents', $config)
->willReturn([
'visibility' => 'public',
]);
$metadata = $this->cacheAdapter
->update(static::FILE, 'contents', $config);
$this
->assertSame('public', $metadata['visibility']);
$this
->assertSame('public', $this->cacheAdapter
->getVisibility(static::FILE)['visibility']);
}