Vinai Kopp

Magento Expert, Developer & Trainer

  • 10. The Config XML Converter Kata

    June 2, 2016

    Mage2Katas

    Finally it’s time to do some real TDD with unit tests again.
    The tests will be running nice and quick since we don’t need the Magento runtime environment to be bootstrapped :)

    This time we will convert the raw XML structure of our custom configuration file from the previous kata to a more usable array structure.

    Read more

  • 08. The DI Arguments Config Kata

    May 5, 2016

    Mage2Katas

    Dependency Injection is at the technological heart of Magento 2. It is used to wire together the application.
    Using the di.xml configuration files most of the systems behavior can be changed.

    Given it is such a critical part of the application, I like being able to know what I am configuring is correct.

    Read more

  • 07. The Action Controller Integration Test Kata

    April 18, 2016

    Mage2Katas

    This kata is (again) about creating a new Action Controller.
    In contrast to the last kata however we will be writing integration tests to verify our controller works correctly in the context of Magento 2.

    Read more

  • Why I promoting testing

    April 15, 2016

    The move from M1 to M2

    Since February 2015 more and more of my work has been about Magento 2. It includes (amongst others) thousands of unit and functional tests.

    My expectation was that many extension developers and integrators would immediately start picking up automated testing, too.
    The move to Magento 2 forced developers to part with old habits anyway, and while learning to work with the new platform, I hoped they would invest into learning testing skills, too.

    Forward to some day mid-January 2016. The first Magento 2 extensions where being released, and I realized it wasn’t happening on it’s own.
    Many of the extensions didn’t include any tests at all. Of course there are exceptions, however it seemed as if “no tests” still was the norm.

    It looked as if the chance to raise the overall quality of Magento implementations in our ecosystem was passing.

    Read more