Book Image

Magento PHP Developer's Guide

By : Allan MacGregor
Book Image

Magento PHP Developer's Guide

By: Allan MacGregor

Overview of this book

<p>Magento has completely reshaped the face of e-commerce since its launch in 2008. Its revolutionary focus on object oriented and EAV design patterns has allowed it to become the preferred tool for developers and retailers alike.</p> <p>"Magento PHP Developer’s Guide" is a complete reference to Magento, allowing developers to understand its fundamental concepts, and get them developing and testing Magento code.</p> <p>The book starts by building the reader’s knowledge of Magento, providing them with the information, techniques, and tools that they require to start their first Magento development.</p> <p>After building this knowledge, the book will then look at more advanced topics: how to test your code, how to extend the frontend and backend, and deploying and distributing custom modules.</p> <p>"Magento PHP Developer’s Guide" will help you navigate your way around your first Magento developments, helping you to avoid all of the most common headaches new developers face when first getting started.</p>
Table of Contents (16 chapters)
Magento PHP Developer's Guide
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Chapter 7. Testing and Quality Assurance

So far, we have covered:

  • The Magento fundamentals

  • Frontend development

  • Backend development

  • Extending and working with the API

However, we omitted a critical step of the development of any extension or custom code: testing and quality assurance.

Despite the fact that Magento is a very complex and large platform, there is no included/integrated unit test suite on versions previous to Magento2.

For that reason, proper testing and quality assurance is often overlooked by most Magento developers either by lack of information or because of the large overhead of some of the testing tools, and while there are not many tools available for running a proper test with Magento, the ones that exist are of very high quality.

In this chapter, we will take a look at the different options available for testing our Magento code, and we will also build some very basic tests for our custom extension.

So let's go over the topics covered in this chapter:

  • The different testing frameworks...