This article will talk you through the steps to follow to write a simple PHPUnit functional (Kernel) test for Drupal 8.
I have been doing a lot of work on Drupal 8 migrations for the past few months so that will be the focus of the test.