DrupalPod + Drupal Forge
Last updated on
11 October 2025
This documentation needs review. See "Help improve this page" in the sidebar.
These instructions can be used to install and test the DrupalPod + Drupal Forge browser extension for working on Drupal.org issues.
- Install the Drupal Forge browser extension from either the Firefox add-on page, Chrome web store page or Safari app store page.
- Important: Open the extension options (or preferences) page and paste
https://git.drupalcode.org/project/drupalpod/-/tree/mainas the DrupalPod Repository URL and press the Save button.
- Important: Open the extension options (or preferences) page and paste
- Create a free account on https://drupalforge.org
- Login to drupal.org
- Ensure that you have setup git access for your drupal.org user account.
- Visit the issue that you want to work on.
- Press the “Get Push Access” button on the issue page.
- Open the Drupal Forge helper extension in your browser’s toolbar, and select:
- Branch: choose the corresponding branch from the merge request.
- Drupal core version: 11.x
- Install profile: Standard
- Click the button to “Open Dev Environment”, agree to the Terms & Conditions, click the “Launch” button and be a little patient. Accept the waivers, if necessary.
- You can click the “Access to DevPanel to work more Powerful” link to see a progress bar as the environment is built.
- Once the environment is finished setting up your Drupal web site, the Application Summary page will be displayed.
- If you want to view the Drupal web site, proceed to the “Working with Drupal in the browser” section below.
- If you want to make a code contribution, proceed to the “Working with VS Code in the browser” section below.
- Please leave any feedback/bugs/comments on the DrupalPod project - including if you went through this process and everything worked for you!
Working with Drupal in the browser
- From the Application Summary page, follow the link that ends in “drupalforge.app”.
- You can log in to your working Drupal web site using admin as the username and admin as the password.
- Complete the task that you need to work on in the issue such as “Add screenshots to an issue”.
Working with Visual Studio Code in the browser
- From the Application Summary page underneath the “Start VSCode in Browser” section, copy the VS Code password.
- Follow the “Open Application” link to open Visual Studio Code in your browser.
- Paste the password from step 1 in the password field on the “Welcome to code-server” page, and then press the “SUBMIT” button.
- Note it is possible to share the Open Application link and password to act as a shared work space.
- In the Visual Studio Code interface, you can find the module or drupal directory inside the repos directory by navigating from the left sidebar or using the terminal. For example, if you are working on a Drupal core issue, the repository is cloned into repos/drupal so you would run
cd repos/drupalto access that directory in the terminal. - When you make changes to files, you can test them in the browser by following the “Working with Drupal in the browser” section above.
Pushing your changes back to the drupal.org issue fork
- Configure your git user name and email by running the following commands in the terminal.
git config --global user.email "you@example.com"git config --global user.name "Your Name"
- Create a GitLab Personal Access Token allowing the “write_repository” permission. Read the “Authenticating with Personal access token over HTTPS” documentation for instructions. It is advised to save the token after you create in a password manager as you will not be able to view the token again after creating it.
- Change directory to the project directory inside the repos directory e.g.
cd repos/drupal. - Ensure the git branch is correct, commit your changes, and when you run
git push <issue fork remote> <issue fork branch>, use the personal access token generated above as the password when prompted.
Using Drush
- Run
./vendor/bin/drushin the terminal.
Running PHPUnit tests
- Copy the
web/core/phpunit.xml.distfile tophpunit.xml. - Open the phpunit.xml file.
- Browse to web/core/sites/default and open settings.php. It may be helpful to use the “Open to the side” functionality to view both files side-by-side in the editor. Scroll down to the bottom of settings.php.
- In the phpunit.xml file,
- Change the phpunit
bootstrapvalue attribute toweb/core/tests/bootstrap.php. - Change the
SIMPLETEST_BASE_URLenv value attribute tohttp://localhost. - Change the
SIMPLETEST_DBenv value to the database connection string based on the database connection array in settings.php:- Start by pasting
mysql://username:password@localhost:port/database_nameinto the value attribute. - Replace
usernamewith theusernamevalue. - Replace
passwordwith thepasswordvalue. - Replace
localhostwith thehostvalue. - Replace
portwith theportvalue. - Replace
database_namewith thedatabasevalue.
- Start by pasting
- Change the phpunit
- In the terminal, ensure that the current working directory is
/var/www/html, and then runvendor/bin/phpunit -c phpunit.xml <web/path/to/test>such as web/core/modules/node/tests/src/Kernel/ConfigActionTest.php.
Help improve this page
Page status: Needs review
You can:
You can:
- Log in, click Edit, and edit this page
- Log in, click Discuss, update the Page status value, and suggest an improvement
- Log in and create a Documentation issue with your suggestion
Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.