From 4c564b46b4ea1ea82c2826975bebb556caf7c001 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Sat, 16 Mar 2024 12:11:55 +0000 Subject: [PATCH] Add daily email for 2024-03-16 Adding tests to the Content Access by Path module --- source/_daily_emails/2024-03-16.md | 32 ++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 source/_daily_emails/2024-03-16.md diff --git a/source/_daily_emails/2024-03-16.md b/source/_daily_emails/2024-03-16.md new file mode 100644 index 000000000..0444e73e1 --- /dev/null +++ b/source/_daily_emails/2024-03-16.md @@ -0,0 +1,32 @@ +--- +title: Adding tests to the Content Access by Path module +date: 2024-03-16 +permalink: archive/2024/03/16/adding-tests-to-the-content-access-by-path-module +tags: + - software-development + - drupal + - php + - automated-testing +cta: subscription +snippet: | + As promised, I've added some tests to the Content Access by Path module. +--- + +Last month, I released the [Beyond Blocks podcast episode][episode] where I spoke with Mark Conroy. + +We spoke about a number of things, including the 'Content Access by Path' Drupal module he wrote, and I promised I'd write some automated tests for it as there weren't any at the time. + +[Yesterday on my Friday live stream][stream], I installed the module and learnt how it works whilst writing some automated tests. + +As is common, the first test took a little while to do as I got the setup steps working and learned how the module worked. Once that was passing, adding the others was fairly straight forward. + +After the stream, I [created an issue][issue] with a merge request to add the tests I wrote and enabling GitLab CI so they'll be automatically run for any other changes. + +Hopefully, it'll be reviewed soon, but I've done what I promised, contributed to more open-source software, learned more about a new module and, hopefully, others will have learned things from the stream too. + +[Subscribe to my YouTube channel][channel] to be notified of future live streams! + +[channel]: https://www.youtube.com/@opdavies +[episode]: {{site.url}}/podcast/11-mark-conroy +[issue]: https://www.drupal.org/project/content_access_by_path/issues/3428680 +[stream]: https://www.youtube.com/live/XTpliKd47Lg?si=o4-my-XHGvcM_mWS