Add daily email for 2024-08-01

Adding automated tests to Content Access by Path
This commit is contained in:
Oliver Davies 2024-08-02 01:02:41 +01:00
parent de5936b547
commit d1c0a9aac5

View file

@ -0,0 +1,32 @@
---
title: Adding automated tests to Content Access by Path
date: 2024-08-01
permalink: daily/2024/08/01/adding-automated-tests-to-content-access-by-path
tags:
- software-development
- drupal
- php
- automated-testing
- test-driven-development
cta: ~
snippet: |
I contributed automated tests to the Content Access by Path Drupal module.
---
Back in [episode 11 of the Beyond Blocks podcast][0], my guest was Mark Conroy and we discussed various things including his [Running Plan Generator][1] and the [Content Access By Path Drupal module][2].
Written for the LocalGov Drupal distribution, as its name suggests, the module allows for setting permissions to maintain content based on its path.
I had a quick look at the module whilst recording and mentioned there were no automated tests, and I was invited to write and contribute some.
I did, [live on YouTube][3], and [created a merge request][4] for the module for review.
Today, that merge request was approved and the tests were added to the module, so I'm officially a contributor to that module.
I also added GitLab configuration, so the tests will automatically run for every change and help avoid regressions in the future.
[0]: {{site.url}}/podcast/11-mark-conroy
[1]: https://runningplangenerator.com
[2]: https://www.drupal.org/project/content_access_by_path
[3]: https://www.youtube.com/live/XTpliKd47Lg
[4]: https://www.drupal.org/project/content_access_by_path/issues/3428680