public function CacheItemBackendTest::testDeleteMultiple in Flysystem 3.x
Same name and namespace in other branches
- 8 tests/src/Unit/Flysystem/Adapter/CacheItemBackendTest.php \Drupal\Tests\flysystem\Unit\Flysystem\Adapter\CacheItemBackendTest::testDeleteMultiple()
- 2.0.x tests/src/Unit/Flysystem/Adapter/CacheItemBackendTest.php \Drupal\Tests\flysystem\Unit\Flysystem\Adapter\CacheItemBackendTest::testDeleteMultiple()
- 3.0.x tests/src/Unit/Flysystem/Adapter/CacheItemBackendTest.php \Drupal\Tests\flysystem\Unit\Flysystem\Adapter\CacheItemBackendTest::testDeleteMultiple()
Tests deleting multiple items at once.
File
- tests/
src/ Unit/ Flysystem/ Adapter/ CacheItemBackendTest.php, line 84
Class
- CacheItemBackendTest
- @group flysystem
Namespace
Drupal\Tests\flysystem\Unit\Flysystem\AdapterCode
public function testDeleteMultiple() {
$cache_item_one = new CacheItem();
$cache_item_two = new CacheItem();
$this->cacheItemBackend
->set('one', $cache_item_one);
$this->cacheItemBackend
->set('two', $cache_item_two);
$this->cacheItemBackend
->deleteMultiple([
'one',
'two',
]);
$this
->assertNotSame($cache_item_one, $this->cacheItemBackend
->load('one'));
$this
->assertNotSame($cache_item_two, $this->cacheItemBackend
->load('two'));
}