Author: Michael G
Talking Drupal: Skills Upgrade #7
Welcome back to “Skills Upgrade” a Talking Drupal mini-series following the journey of a D7 developer learning D10. This is episode 7.
Topics
-
Review Chad’s goals for the previous week
- Test Example
- Set up phpunit.xml
- Start with FrontPageLinkTest.php
-
Review Chad’s questions
- In the testing_example module, the file “src/Controller/TestingExampleController.php” has a function for simpletestDescription(). Is this an outdated artifact that should have been removed at some point? The module itself doesn’t appear to use Simpletest elsewhere and appears to only rely on PHPUnit.
- What do you recommend for the minimal code structure to include for any given test type? Is the Testing Example module an ideal model or are there other resources I should review? The testing reference from Selwyn was helpful.
- In the “FrontPageLinkDependenciesTest.php” setUp() function, the createContentType() function is called without specifying the type. Is that set somewhere else? I may have overlooked it. Nevermind—it’s set using randomMachineName() in the createContentType() function. Is there anything extra or standard to write in tests for drupal.org?
-
Tasks for the upcoming week
- Smart Date – Martin (maintainer) to review promptly, I’ve already chatted with him about it. Create a new functional test: “submit a range with an end time before the start and validate that an error is returned”
- Create an issue in the Smart Date queue and assign to yourself.
- Create an issue fork.
- Check out the issue fork locally.
- Write (and test) the test locally.
- Commit and push to the issue fork.
- Mark issue as “Needs review”.
- Ask someone to review – if all looks good, the reviewer will mark as RBTC.
- Smart Date – Martin (maintainer) to review promptly, I’ve already chatted with him about it. Create a new functional test: “submit a range with an end time before the start and validate that an error is returned”
Resources
Chad’s Drupal 10 Learning Curriclum & Journal Chad’s Drupal 10 Learning Notes
The Linux Foundation is offering a discount of 30% off e-learning courses, certifications and bundles with the code, all uppercase DRUPAL24 and that is good until June 5th https://training.linuxfoundation.org/certification-catalog/
Hosts
AmyJune Hineline – @volkswagenchick
Guests
Chad Hester – chadkhester.com @chadkhest Mike Anello – DrupalEasy.com @ultimike
Introducing Janus a read/write proxy for ActiveRecord 7.1+
In -current, default write format for tar(1) changed to “pax”
A series of commits by Jeremie Courreges-Anglas (jca@
)
has modified
tar(1)
such that its default write format (for archives) is that of
pax(1)
.
The message with the final
commit
captures the gist of the change:
CVSROOT: /cvs Module name: src Changes by: jca@cvs.openbsd.org 2024/04/16 17:09:35 Modified files: bin/pax : options.c tar.1 Log message: Switch tar(1) write default format to 'pax' Lets us store longer file names, link names, finer grained timestamps, larger archive member files, etc; at the expense of larger uncompressed archives and less widespread support across the ecosystem. If you're unhappy with the new defaults, you can use -F ustar. Or you can help fix bugs / find a better middle ground. Prodding from various including job@ and deraadt@ ok sthen@ caspar@ millert@
`
Open Source in the Age of LLMs
(To read the complete Mozilla.ai publication featuring all our OSS contributions, please visit the Mozilla.ai blog) Like our parent company, Mozilla.ai’s founding story is rooted in open-source principles and community collaboration. Since our start last year, our key focus has been exploring state-of-the-art methods for evaluating and fine-tuning large-language models (LLMs). Throughout this process, we’ve […]
The post Open Source in the Age of LLMs appeared first on The Mozilla Blog.
A better, more compact UI for Firefox
Life Saver Series – CPR Training & Awareness Program at CPS Mumbai
Video by via Dailymotion Source Join us for a transformative CPR training and awareness program at CPS Mumbai. In this Life Saver Series, we equip participants with vital skills to respond effectively in cardiac emergencies. Through interactive sessions and hands-on training, our dedicated instructors empower the community to become confident first responders. Together, let’s save…
Israel abre “ofensiva diplomática” contra Irã
Video by via Dailymotion Source Israel iniciou uma “ofensiva diplomática” contra o Irã nesta terça-feira (16) e pediu a 32 países que adotem sanções contra a Guarda Revolucionária da República Islâmica e seu programa de mísseis, após o ataque do fim de semana. Assista ao Jornal da Manhã completo: https://youtube.com/live/91neOR0u_ow Baixe o app Panflix: https://www.panflix.com.br/…