You are here

public function KeyValueEntityStorageTest::testDeleteNothing in Drupal 8

@covers ::delete @covers ::doDelete

File

core/tests/Drupal/Tests/Core/Entity/KeyValueStore/KeyValueEntityStorageTest.php, line 671

Class

KeyValueEntityStorageTest
@coversDefaultClass \Drupal\Core\Entity\KeyValueStore\KeyValueEntityStorage @group Entity

Namespace

Drupal\Tests\Core\Entity\KeyValueStore

Code

public function testDeleteNothing() {
  $this
    ->setUpKeyValueEntityStorage();
  $this->moduleHandler
    ->expects($this
    ->never())
    ->method($this
    ->anything());
  $this->keyValueStore
    ->expects($this
    ->never())
    ->method('delete');
  $this->keyValueStore
    ->expects($this
    ->never())
    ->method('deleteMultiple');
  $this->entityStorage
    ->delete([]);
}