You are here

public function InstallTest::testInstallation in Node Option Premium 8

Tests that the module is installable.

File

tests/src/Functional/InstallTest.php, line 59

Class

InstallTest
Tests module installation.

Namespace

Drupal\Tests\nopremium\Functional

Code

public function testInstallation() {
  $this
    ->assertFalse($this->moduleHandler
    ->moduleExists('nopremium'));
  $this
    ->assertTrue($this->moduleInstaller
    ->install([
    'nopremium',
  ]));
  $this
    ->reloadServices();
  $this
    ->assertTrue($this->moduleHandler
    ->moduleExists('nopremium'));
}