Magento 2, PHPUnit and magic methods

One can’t mock magic methods in PHPUnit, because of this error. Trying to configure method “getTrackingSent” which cannot be configured because it does not exist, has not been specified, is final, or is static So my workaround until now was to mock __call, like so: This is okay, if one needs only one or maybeContinue reading “Magento 2, PHPUnit and magic methods”

Simple (Magento|Shopware) plugin release pipeline

We just finished a shipping plugin and were looking for a simple way to deploy it. Because we wanted to allow composer deployments having a git repository somewhere to get it from was already set, but the customer requested a link to a ZIP file. We already had a private and a public repository andContinue reading “Simple (Magento|Shopware) plugin release pipeline”