3 namespace Drupal\Tests\action\Functional;
5 use Drupal\Tests\BrowserTestBase;
8 * Tests that uninstalling actions does not remove other module's actions.
11 * @see \Drupal\action\Plugin\views\field\BulkForm
13 class ActionUninstallTest extends BrowserTestBase {
20 public static $modules = ['views', 'action'];
23 * Tests Action uninstall.
25 public function testActionUninstall() {
26 \Drupal::service('module_installer')->uninstall(['action']);
28 $storage = $this->container->get('entity_type.manager')->getStorage('action');
29 $storage->resetCache(['user_block_user_action']);
30 $this->assertTrue($storage->load('user_block_user_action'), 'Configuration entity \'user_block_user_action\' still exists after uninstalling action module.');
32 $admin_user = $this->drupalCreateUser(['administer users']);
33 $this->drupalLogin($admin_user);
35 $this->drupalGet('admin/people');
36 // Ensure we have the user_block_user_action listed.
37 $this->assertRaw('<option value="user_block_user_action">Block the selected user(s)</option>');