You are here

public function CacheItemBackendTest::testLoadMiss in Flysystem 3.x

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

Tests when loading a cache item creates a new item.

File

tests/src/Unit/Flysystem/Adapter/CacheItemBackendTest.php, line 62

Class

CacheItemBackendTest
@group flysystem

Namespace

Drupal\Tests\flysystem\Unit\Flysystem\Adapter

Code

public function testLoadMiss() {
  $item = $this->cacheItemBackend
    ->load('test_path');
  $this
    ->assertInstanceOf(CacheItem::class, $item);
}