Test Patches for Drupal 7, 8

Last updated February 27, 2020

Check your version

This tutorial covers a topic in Drupal 8 which may or may not be the version you're using. We're keeping this tutorial online as a courtesy to users of Drupal 8, but we consider it archived.

Sprout Video

In this video we will walk through the process of testing existing patches in the issue queue. We will read an issue, download and apply the patch with Git, and then test it to see if it works. This video follows the instructions on the Test patches lesson on

The lines that I have in my .bash_profile (shown at the end of this video) to add the Git branch to my command line prompt is:

function parse_git_branch {
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
export PS1="\h:\W \u\$(parse_git_branch)\$ "

I'm using a Mac, so your mileage may vary on other systems.