To make this easy, I recommend you use your local TYPO3 v10 installation based on DDEV. It’s perfect for testing! If anything goes wrong or breaks your whole installation, just kill the complete environment as described in step four of my first tutorial and start over.
Step 1: One-time preparation of your DDEV environment
To prepare everything for testing, open your favorite shell and run these commands:
ddev composer req cweagans/composer-patches
This installs a composer package to patch your TYPO3 installation with composer commands.
ddev composer config extra.composer-exit-on-patch-failure true
This command tells your composer patch command to stop if a patch cannot be applied.
Downloads from Gerrit will be stored in your project folder named “patches”.
Step 2: Update your TYPO3 v10 test installation to apply the latest patches
Follow the procedures in Step 3 in Part 1. This will update your TYPO3 v10 test installation to apply the latest patches.
Step 3: Download and apply a patch
1. Pick your patch! Go to the detail page of a patch, e.g. https://review.typo3.org/c/Packages/TYPO3.CMS/+/64172
Please note: This patch has already been merged. It’s just an example! Obviously, it would be hard for me to give you an example of a particular patch that won’t be merged in the future. If you do attempt to apply a patch that’s already been merged, these steps won’t work. So follow the tips above to go find a new patch to test!
2. Next click the “Download” button on the right side and download the zip version of the patch.