Our extension has begun to take shape, with more in-depth features. To continue, we will write our first unit test with PHPUnit in order to code a timed checkout associated with the tickets on sale with TicketBlaster.
We also introduce the concept of a sales promotion and make a checkout and an order flow overview, in order to understand how Magento works with these features. By doing this, we will see that our models are fully loaded with the information you can use and we will use rapid methods to discover them. This approach will allow us to implement a special flat rate shipping method in our TicketBlaster extension.
In this chapter, we will cover the following topics:
Testing in Magento
Using the Magento Testing Framework
Writing unit tests with PHPUnit
Writing a timed checkout