You are here

public function ConfigEntityStorageTest::testDeleteNothing in Drupal 9

Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/Core/Config/Entity/ConfigEntityStorageTest.php \Drupal\Tests\Core\Config\Entity\ConfigEntityStorageTest::testDeleteNothing()
  2. 10 core/tests/Drupal/Tests/Core/Config/Entity/ConfigEntityStorageTest.php \Drupal\Tests\Core\Config\Entity\ConfigEntityStorageTest::testDeleteNothing()

@covers ::delete @covers ::doDelete

File

core/tests/Drupal/Tests/Core/Config/Entity/ConfigEntityStorageTest.php, line 703

Class

ConfigEntityStorageTest
@coversDefaultClass \Drupal\Core\Config\Entity\ConfigEntityStorage @group Config

Namespace

Drupal\Tests\Core\Config\Entity

Code

public function testDeleteNothing() {
  $this->moduleHandler
    ->getImplementations(Argument::cetera())
    ->shouldNotBeCalled();
  $this->moduleHandler
    ->invokeAll(Argument::cetera())
    ->shouldNotBeCalled();
  $this->configFactory
    ->get(Argument::cetera())
    ->shouldNotBeCalled();
  $this->configFactory
    ->getEditable(Argument::cetera())
    ->shouldNotBeCalled();
  $this->cacheTagsInvalidator
    ->invalidateTags(Argument::cetera())
    ->shouldNotBeCalled();
  $this->entityStorage
    ->delete([]);
}