Magento 2 Mock Fixing
Magento 2 Mock Fixing Speaking of Vinai, here’s a nice how to on adjusting Magento’s test mocks, and then some good typing on what would really fix them.
astormMagento 2 Mock Fixing Speaking of Vinai, here’s a nice how to on adjusting Magento’s test mocks, and then some good typing on what would really fix them.
astormMagento’s documentation tells you to run tests with the following php bin/magento dev:tests:run unit This isn’t wrong, but it pretty time consuming. You’re running every test in the suite. This one liner will let you run an individual test vendor/bin/phpunit -c dev/tests/unit/phpunit.xml.dist [...]
astormToday's a slight change of pace. We're going to a review a new Magento 2 book, Theme Web Page Assets: Getting Stuff Done with Magento 2.
astormToday we're going to cover a few of the advanced features of Magento's routing system, and discuss the history of some seemingly acute sharp edges. While all the techniques available in this article may not be the best way to achieve your goals, as
astormMagento 2: Set a PHP umask It sounds like the latest version of Magento adds the ability to set a umask for PHP, which means another barrier to getting Magento up and running in industry standard, mod_php system (i.e. shared hosting and your laptop) has been knocked down. Looking forward to giving this a try when I have a moment. I know [...]
astormNow that we know how to create Access Control List Rules, and how to generate Admin Menu Items with Magento 2's CSFR protection, we're ready to create an MVC/MVVM URL endpoint (i.e. an HTML page) in Magento 2's admin.
astormMagento 2: Sort Order gets Weird for “Around” Plugins Interesting bit of insight from Anton Kril on plugin firing order. My naive assumption on how this would work was All before plugins fire The around plugin chaining happens All after plugins fire However, based on what Anton’s said here, it sounds like an around [...]
astormIf you grab the latest version of pestle (updated minutes ago) you should be able to use the following set of commands to create a base module with a working admin route. $ pestle.phar generate_module Pulsestorm HelloAdminPestle2 0.0.1 $ php bin/magento module:enable Pulsestorm_HelloAdminPestle2 $ php bin/magento setup:upgrade $ [...]
astormMagestead – The Vagrant Solution for Magento Developers Magestead just released version 2.0, with support for Magento 2. Another vagrant box to checkout if you’re looking for a way to get a sane Magento 2 enviornment up and running.
astormWhile phrases like “should we be be doing this in 2016” abound in engineering discussions, down in the trenches an arbitrary SQL query is often the fastest, most expedient way to get at the data you want. While I still regularly encourage developers new to Magento to embrace using the models and API resource models when [...]
astormTwo good Stack Exchange answers from Raphael at Digital Pianism covering how to add a custom icon to your Magento Admin Menu Items. In short – these menu items use a custom font character, defined in svg file that’s (somehow? via LESS CSS?) converted to an embedded OpenType font. This custom font uses the Private Use Area of [...]
astormIn the first article of this series, we described how to create a simple MVC/MVVM endpoint in Magento 2. Implicit, but unstated, was that we were setting up an endpoint for Magento's frontend cart application. While the backend admin application uses the same MVC/MVVM/View
astormIn Magento 2, when you’re working in phtml template files, you’ll see two ways to make method calls to the block object, one using $this, another using $block $this->someMethodCall(); $block->someMethodCall(); The $block variable is new in Magento 2. It contains a reference to an instance of a template’s block [...]
astormThe Magento backend application, (sometimes called "The Admin" or adminhtml area), is where a system owner manages their Magento store. This is where users interact with web forms to add new products, change configurations, etc. Magento is a multiuser application -- i.e. a
astorm