Start with a vague test

If you're unsure what your first test should be, start by writing a test with an intentionally vague name, just to get you started.

It may not be clear straight away what you're trying to test.

Once you get the ball rolling and you write more, it will usually become clear.

Then you can go back and rename the test method to something more specific.

- Oliver

Was this interesting?

Sign up here and get more like this delivered straight to your inbox every day.

About me

Picture of Oliver

I'm an Acquia-certified Drupal Triple Expert with 17 years of experience, an open-source software maintainer and Drupal core contributor, public speaker, live streamer, and host of the Beyond Blocks podcast.