File structure and namespace
Execute PHPUnit tests from the command line.
Configure PhpStorm to run Drupal's PHPUnit tests.
A mock object most of the time will contain an expectation like
Dealing with function calls
Mocking with Prophecy in PHPUnit
Now that we saw how you can use prophecy as a start, let's compare it with the other frequently used PHPUnit mocking framework
This tutorial will take you through the basics of PHPUnit Browser testing in Drupal 8.
What You Should Know