public function LocalTasksTest::setUp in Twitter Profile Widget 8
Overrides LocalTaskIntegrationTestBase::setUp
File
- tests/
src/ Unit/ Menu/ LocalTasksTest.php, line 17
Class
- LocalTasksTest
- Tests whether Twitter Profile Widget local tasks work correctly.
Namespace
Drupal\Tests\twitter_profile_widget\Unit\MenuCode
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/Menu', '', $module_path);
$module_path = trim($module_path, '/');
$this->directoryList = [
'twitter_profile_widget' => $module_path,
];
}