You are here

public function LocalTasksTest::setUp in Search API 8

Overrides LocalTaskIntegrationTestBase::setUp

File

tests/src/Unit/LocalTasksTest.php, line 17

Class

LocalTasksTest
Tests whether Search API's local tasks work correctly.

Namespace

Drupal\Tests\search_api\Unit

Code

public function setUp() {
  parent::setUp();

  // Set the path of the module dynamically.
  $module_path = str_replace(\Drupal::root(), '', __DIR__);
  $module_path = str_replace('tests/src/Unit', '', $module_path);
  $module_path = trim($module_path, '/');
  $this->directoryList = [
    'search_api' => $module_path,
  ];
}