Drupal 8 Forms and TDD, part 2: form building
In part 1, I showed how you can start using TDD when writing Drupal code, and how to apply it to testing a custom file validation callback. In this part, I'll show how you can test the form building.
Links
- Part 1.
- Part 3.
- Part 4.
- The source code for the example.
- The Composer template for Drupal project used for the project structure.
- The official documentation for writing automated tests in Drupal 8.
Enjoyed this post? Grab the RSS feed or follow me on Twitter!
Found a typo ? Correct it, submit a pull-request and get credited here!