When we talk about Drupal Commerce 2, the biggest we questions we get are not about features, but when you can start building with it. Well, the answer is and has been now! Drupal Commerce 2 has been in alpha and nearing beta. What does this mean? In alpha we might have some schema changes, requiring a reinstall of your site.
As part of the push to deprecate SimpleTest and use PHPUnit as the test runner in Drupal 8, there is the
\Drupal\Tests\BrowserTestBase class. The
BrowserTestBase provides a Mink runner that tests web pages in Drupal. Unlike kernel tests, which require a database and can be run via PHPUnit as well, browser tests use your default database connection. I prefer to run my tests with SQLite as I do not need to have my Docker containers running.
The simplest solution I have found, thus far, is to check the HTTP_USER_AGRENT
Plans were made back in December 2015 to put effort into the ability to support Migrate with Drupal Commerce to speed up adoption of Drupal Commerce 2.0. Commerce Migrate for Drupal 8 will provide migrations from Drupal Commerce 1.x, Ubercart for D6, and Ubercart for D7. Ideally, this module will also support other vendors, such as Magento and WooCommerce.
My book, the Drupal 8 Development Cookbook, recently published! To celebrate this, and Drupal 8, Packt Publishing has a special sales campaign for learning about Drupal 8. Read more to get the coupon code and links to five different books on Drupal 8!
The process of debugging can be a difficult one, and the process of troubleshooting performance even more so. Luckily there are some great tools out there to help with improving the performance of web applications. Previously I wrote about generating flamegraphs from XHProf to visual stacktraces and identify bottlenecks.
I've been keeping myself busy with a few things over the past few months. One of them is the Drupal 8 Development Cookbook to be published by Packt Publishing around May 2016! The book will feature over 60 recipes that will help beginners and seasoned Drupalistas get a handle on Drupal 8. I have been helping on developing Drupal Commerce 2.x and given a hand with the Panels in Drupal 8 initiative. Taking from these experiences I have been working hard to create a great resource for all Drupal 8 hopefuls!