Testing CSV output in Drupal 10 with BrowserTestBase
In a recent project, we were outputting CSV and wanted to test that the file contents were valid.
Read on for a quick tip on how to achieve this with Drupal 10's BrowserTestBase
In a recent project, we were outputting CSV and wanted to test that the file contents were valid.
Read on for a quick tip on how to achieve this with Drupal 10's BrowserTestBase
Conversational UIs are the next digital frontier.
And as always, Drupal is right there on the frontier, helping you leverage your existing content and data to power more than just web-pages.
Want to see it action - click 'Start chatting' and chat to our Drupal site.
Australia’s fourth largest mobile service provider, amaysim, required a new website that would allow the scope to keep up with the company’s growth and agility both now and into the future. In early 2016, PreviousNext were engaged for the development of this new site on the Drupal content management system.
Read about AmaysimThis week whilst trying to update one of our projects to the latest version of Drupal 8 core, we had some issues.
We use Composer to manage our dependencies, modules etc, and on this particular occasion, things weren't straightforward.
In order to solve it, we had to use some of the lesser known features of Composer, so decided to share.
In late 2015, Wyndham City, a local government organisation based in the south-west region of Melbourne, undertook a competitive tender selection for the redevelopment of their website and chose PreviousNext to deliver this new site on Drupal.
Read about Wyndham CityAs you'd be aware by now - Drupal 8 features lots of refactoring of form procedural code to object-oriented.
One such refactoring was the way forms are build, validated and executed.
One cool side-effect of this is that you can now build and test a form with a single class.
Yep that's right, the form and the test are one and the same - read on to find out more.
Drupal's Batch API is great, it allows you to easily perform long running processes with feedback to the user.
But during Drupal 8's development processes it was one of the remaining systems that didn't get the full object oriented, service-based architecture.
Much of the batch API is largely unchanged from Drupal 7.
But that doesn't mean you can't write unit-testable callbacks.
Let's get started.
This one tripped me up on a recent Drupal 8 project.
Easy to miss when you're working in a development oriented environment with things like JavaScript preprocessing turned off.
A JavaScript file was being added just fine with aggregation turned off, but not getting added with it turned on.
On a recent Drupal 8 client project our client was building listing pages using views exposed filters and adding these to the menu.
This resulted in several menu URLs pointing to the same base path, but with the query arguments determining the difference.
However Drupal 8's default menu-trail calculation was resulting in the menu highlighting all instances when one of them was viewed.
Luckily the active trail calculation is done in a service and it was simple to modify the default behaviour.
Read on to see how we did it.
After Drupal Camp Lahore and Drupal Camp Islamabad earlier this year, I was once again inivited to Drupal Camp Islamabad to present a session on Drupal 8 as a framework.