UninstallTest.php in Login Destination 8.2
File
tests/src/Functional/UninstallTest.php
View source
<?php
namespace Drupal\Tests\login_destination\Functional;
use Drupal\Tests\BrowserTestBase;
class UninstallTest extends BrowserTestBase {
public static $modules = [
'login_destination',
];
public function testUninstall() {
$module_handler = $this->container
->get('module_handler');
$this
->assertTrue($module_handler
->moduleExists('login_destination'));
$this
->assertTrue($this->container
->get('module_installer')
->uninstall([
'login_destination',
]));
}
}