O'Reilly logo

Magento Extensions Development by Jérémie Bouchet

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

Writing a timed checkout

The event is held on a precise date and probably at a precise time, so we cannot sell tickets if the event has already begun. We will write a timed checkout to ensure that the tickets can't be sold after a specific configured time.

Writing a unit test

For this unit test, we need to create a ticket product and link it to an event:

  1. Create a new product by choosing the Ticket Product type:
    Writing a unit test
  2. Associate this product with an already existing TicketBlaster event:
    Writing a unit test

    Tip

    Do not forget to give a name, description, price, and category, set it ...

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