function KeyValueContentEntityStorageTest::testUninstall

Same name in other branches
  1. 9 core/tests/Drupal/KernelTests/Core/KeyValueStore/KeyValueContentEntityStorageTest.php \Drupal\KernelTests\Core\KeyValueStore\KeyValueContentEntityStorageTest::testUninstall()
  2. 8.9.x core/tests/Drupal/KernelTests/Core/KeyValueStore/KeyValueContentEntityStorageTest.php \Drupal\KernelTests\Core\KeyValueStore\KeyValueContentEntityStorageTest::testUninstall()
  3. 10 core/tests/Drupal/KernelTests/Core/KeyValueStore/KeyValueContentEntityStorageTest.php \Drupal\KernelTests\Core\KeyValueStore\KeyValueContentEntityStorageTest::testUninstall()

Tests uninstallation of a module that does not use the SQL entity storage.

File

core/tests/Drupal/KernelTests/Core/KeyValueStore/KeyValueContentEntityStorageTest.php, line 171

Class

KeyValueContentEntityStorageTest
Tests KeyValueEntityStorage for content entities.

Namespace

Drupal\KernelTests\Core\KeyValueStore

Code

public function testUninstall() : void {
    $uninstall_validator_reasons = \Drupal::service('content_uninstall_validator')->validate('keyvalue_test');
    $this->assertEmpty($uninstall_validator_reasons);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.