You are here

protected function TamperPluginsTestBase::loadPlugin in Tamper 7

Loads the plugin info and the plugin class.

Modules implementing their own tests can change this as necessary.

Parameters

string $module_directory: The root path of the module directory.

1 call to TamperPluginsTestBase::loadPlugin()
TamperPluginsTestBase::setUp in src/Tests/TamperPlugins.test
Sets up unit test environment.

File

src/Tests/TamperPlugins.test, line 52
Contains tests for Tamper plugins.

Class

TamperPluginsTestBase
Base class for Feeds Tamper plugin tests.

Code

protected function loadPlugin($module_directory) {
  $plugin = NULL;
  require_once $module_directory . '/plugins/' . $this->pluginId . '.inc';
  $plugin['class'] = array(
    'class' => $plugin['class'],
  );
  $this->pluginInfo = $plugin;
  $class = $this->pluginInfo['class']['class'];
  require_once $module_directory . '/src/Plugins/' . $class . '.php';
}