You are here

UninstallTest.php in Login Destination 8.2

Same filename and directory in other branches
  1. 8 tests/src/Functional/UninstallTest.php

File

tests/src/Functional/UninstallTest.php
View source
<?php

namespace Drupal\Tests\login_destination\Functional;

use Drupal\Tests\BrowserTestBase;

/**
 * Tests module uninstallation.
 *
 * @group login_destination
 */
class UninstallTest extends BrowserTestBase {

  /**
   * {@inheritdoc}
   */
  public static $modules = [
    'login_destination',
  ];

  /**
   * Tests module uninstallation.
   */
  public function testUninstall() {

    // Confirm that Login Destination has been installed.
    $module_handler = $this->container
      ->get('module_handler');
    $this
      ->assertTrue($module_handler
      ->moduleExists('login_destination'));

    // Uninstall Login Destination.
    $this
      ->assertTrue($this->container
      ->get('module_installer')
      ->uninstall([
      'login_destination',
    ]));
  }

}

Classes

Namesort descending Description
UninstallTest Tests module uninstallation.