O'Reilly logo

Magento 2 Developer's Guide by Branko Ajzele

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Summary

In this chapter, we took a look at the testing facility embedded in Magento through the libraries in the root dev/tests/ directory and the Magento_Developer module. We learned how to run all of its test types and studied a simple example of writing our own unit tests. The examples that are given here do not do justice to PHPUnit, given its robustness. More information on PHPUnit can be found at https://phpunit.de/.

We will now move on to the final chapter of this book, where we will reiterate the things that we learned so far and develop a functional miniature module that involves some basic testing.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required