You are here

public function InstallationTest::testInstallation in Video Embed Field 8

Same name and namespace in other branches
  1. 8.2 tests/src/Functional/InstallationTest.php \Drupal\Tests\video_embed_field\Functional\InstallationTest::testInstallation()

Test the installation and uninstallation of the the modules.

File

tests/src/Functional/InstallationTest.php, line 27

Class

InstallationTest
Test the modules install and uninstall cleanly.

Namespace

Drupal\Tests\video_embed_field\Functional

Code

public function testInstallation() {
  $this
    ->assertInstallationStatus(FALSE);
  $this
    ->installModules();
  $this
    ->assertInstallationStatus(TRUE);
  $this
    ->uninstallModules();
  $this
    ->assertInstallationStatus(FALSE);
  $this
    ->installModules();
  $this
    ->assertInstallationStatus(TRUE);
}