uuid: - value: f5f4ce80-df89-4a85-ba7f-5aa819e9a4d7 langcode: - value: en type: - target_id: daily_email target_type: node_type target_uuid: 8bde1f2f-eef9-4f2d-ae9c-96921f8193d7 revision_timestamp: - value: '2025-05-11T09:00:38+00:00' revision_uid: - target_type: user target_uuid: b8966985-d4b2-42a7-a319-2e94ccfbb849 revision_log: { } status: - value: true uid: - target_type: user target_uuid: b8966985-d4b2-42a7-a319-2e94ccfbb849 title: - value: | Think smaller with TDD created: - value: '2023-07-04T00:00:00+00:00' changed: - value: '2025-05-11T09:00:38+00:00' promote: - value: false sticky: - value: false default_langcode: - value: true revision_translation_affected: - value: true path: - alias: /daily/2023/07/04/think-smaller-with-tdd langcode: en body: - value: |
I've recently added several custom search blocks and pages to a client project.
Each requires a results page, a list of autocomplete suggestions for users to select from, a custom form, and a block to place it on the required pages.
For each search, I'm first testing the results page, ensuring it exists and contains the correct results before testing the autocomplete results, creating the block and form, and linking everything together.
This could seem like a large and daunting task, but with test-driven development, I can break everything into smaller, more manageable tasks.
My objective is either to write the next failing test and then get it to pass or to refactor what I've written.
I can focus on these small steps and make progress towards the end goal, guided by the tests I'm writing, instead of needing to focus always on one large and complex task.
format: full_html processed: |I've recently added several custom search blocks and pages to a client project.
Each requires a results page, a list of autocomplete suggestions for users to select from, a custom form, and a block to place it on the required pages.
For each search, I'm first testing the results page, ensuring it exists and contains the correct results before testing the autocomplete results, creating the block and form, and linking everything together.
This could seem like a large and daunting task, but with test-driven development, I can break everything into smaller, more manageable tasks.
My objective is either to write the next failing test and then get it to pass or to refactor what I've written.
I can focus on these small steps and make progress towards the end goal, guided by the tests I'm writing, instead of needing to focus always on one large and complex task.
summary: null field_daily_email_cta: { }