You are here

public function KeyValueContentEntityStorageTest::testUninstall in Drupal 8

Same name and namespace in other branches
  1. 9 core/tests/Drupal/KernelTests/Core/KeyValueStore/KeyValueContentEntityStorageTest.php \Drupal\KernelTests\Core\KeyValueStore\KeyValueContentEntityStorageTest::testUninstall()
  2. 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() {
  $uninstall_validator_reasons = \Drupal::service('content_uninstall_validator')
    ->validate('keyvalue_test');
  $this
    ->assertEmpty($uninstall_validator_reasons);
}