We all know that PHPunit testing framework has been added into Drupal 8. More than that SimpleTest in Drupal 8 is deprecated now. So let’s learn about, how to write the PHPUnit test for our requirement. The following Topics were covered during DrupalCamp Mumbai 2017 session. We are covering in the slides.
Things we need to know before writing PHPUnit Test Case?
Files Structure and namespace
PHPUnit Base Classes
How to write a PHPUnit Test?
Running PHPUnit tests
How to integrate with PHPStorm?