You are here

public function EmbedButtonTest::installModule in D7 Media 8

Installs the module using module_handler service.

Parameters

string $module_name: Name of the module to install.

1 call to EmbedButtonTest::installModule()
EmbedButtonTest::setUp in tests/src/FunctionalJavascript/EmbedButtonTest.php

File

tests/src/FunctionalJavascript/EmbedButtonTest.php, line 81

Class

EmbedButtonTest
Ensures that embedding functionality works perfectly.

Namespace

Drupal\Tests\media\FunctionalJavascript

Code

public function installModule($module_name) {
  if (!$this->container
    ->get('module_handler')
    ->moduleExists($module_name)) {
    $this->container
      ->get('module_installer')
      ->install(array(
      $module_name,
    ));
  }
}