Writing PHPunit tests for your custom modules in Drupal 8
Integrating PHPunit into your custom modules is now even easier.