Magento Acceptance Tests and Codeception

Many testing tools are overly complicated. For a while, we searched for an automated testing framework that would meet our needs. We tried a lot of frameworks like Selenide and CasperJS but they were not exactly what we’ve been looking for. Not so long ago, we’ve discovered a tool Codeception and I want to introduce you to it.

Magento-Sandboxes

It is always good when you can test your features fast. But sometimes it’s literally hard and takes a lot of time to test something in Magento. When you make one little change in code and want to test it, it can take much more time to test it rather than make the change itself. Nevertheless it’s a common situation taking into account the complexity of Magento.

Speculations-on-what-2017-has-in-store

Unsurprisingly, eCommerce growth shows no signs of slowing down: according to Forrester Research, eCommerce sales will reach $385 billions in 2017 (nearly +10% compared to 2016). Below are some wild predictions on what could become hot topics in 2017.

Adding new category attributes in Magento 2

In this post, we aim to share our expertise on creating a category attribute in Magento 2. As you may have noticed, we need to change (add or customize) category attributes from time to time. We have done it many times for Magento 1 and now we faced the same task in Magento 2. This process is very similar for both Magento versions, however there are some differences. So let’s check how we can do it step by step.

OroCommerce-The-First-Meeting

Every year we witness new players emerging in the space of eCommerce platforms. More than often, they come out of nowhere and disappear before gaining any significant traction, but sometimes we have a chance to look at very promising candidates from companies with strong reputation in the field. Here’s one of the latter: an eCommerce platform from Oro Inc, the creators of a quite powerful open-source CRM system – OroCRM. Though it’s still in the beta testing stage at this point, we simply couldn’t miss the opportunity to dig into a new product from the company we’ve worked with for years. Meet OroCommerce!

Docker-development-environment-for-Magento

It has never been easier to create a development environment. No meter what operation system you use with Docker you can build the exact configuration you need. In this post we will provide steps for creating a sample Magento development environment configured in a single docker-compose.yml file.

How-to-use-the-Magento-2-object-manager-in-your-unit-tests

Every unit test ninja faces troubles whenever he wants to test some real class functionality. Have you ever invoked toHtml() method of some block or beforeLoad() method of any collection? If you want to do it, you will need to mock a lot of classes that depend on other classes and so on. You would need to mock all of them, which would take a lot of time and effort. In a long run, you may blow up deadlines and it would really suck. Yes, you can try to change your testing strategy to avoid invoking such methods. But what if you still need to test them? Let’s explore how I addressed this issue.

Working-with-Magento-2-Cache

Sometimes Magento developers face the need to work with Magento caches programmatically. For example, when you develop your custom module, which renders some content on front-end and this content can be managed via Admin Panel. Let’s say it is cached by the Full Page Cache (FPC). In this case you will need to notify the user that one of the cache types is invalidated and should be refreshed in order to have the changes applied. You might even want to refresh the FPC automatically with each modification. Magento 2 allows this to be performed quickly and easily.