What to mock in a Magento 2 unit test

Leider ist der Beitrag nur auf Englisch verfügbar.

2 Replies to “What to mock in a Magento 2 unit test”

  1. Thank you for this blog post. Do you know if there’s any work started for providing fakes for the main M2 core classes?

    We have started to create very simple in memory repositories for instance to support testing and would love to share with others.

    1. Good question! I don’t know of any work in that direction, but I’ll find out. If you share your work, I’d like to help to get it integrated into the core, it would be a valuable addition!

Hinterlasse eine Antwort

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind markiert *