Topic view

15 minutes to your first Drupal integration test

By neerav.mehta Fri, 06/12/2015 - 01:22 7 Comments

This post will help you write and run your first Drupal integration test in less than 15 minutes. By end of this post, you will be able to write an automated test to make sure that superuser is able to create two pieces of content, one published and the other unpublished. We'll test that anonymous user is able to view the published content and is not able to view the unpublished content. You can follow along these steps on any Unix or Mac machine and have automated tests running in a matter of minutes.

How to Install Red Test

By neerav.mehta Tue, 06/09/2015 - 19:30 1 Comments

Learn how to install Red Test, a fast integration testing framework for Drupal.

Adding A Contextual Filter To A View In Drupal 8

By rakesh.james Mon, 05/11/2015 - 22:30 5 Comments

In this article, we will focus on contextual filters. Initially, we will explore the difference between contextual and regular filters. After that, we will create a view displaying content created by the logged-in user. We will also explore the “WHEN THE FILTER VALUE IS NOT IN THE URL” dialog box and the different options associated with it.

How to add an Ubuntu apt-get key from behind a firewall

By neerav.mehta Fri, 05/01/2015 - 21:30 1 Comments

Have you ever tried to install an apt package from a third-party repository from behind a firewall? If you run apt-key command with a key server, firewall will block it. Read this post to find out how to get past the firewall to import key for a third-party apt package.

Working With The Drupal Google Analytics Module

By jojy.alphonso Tue, 04/14/2015 - 22:30 1 Comments

This article helps you install the Drupal Google Analytics module. Go through the accompanying screenshots to enable and configure the module for your Drupal 7 site. We will show you how to deploy the Tracking ID for your site. We will be going through the different options you will come across while enabling this module. At the end of the article, we will show how Drupal Google Analytics works with real-time examples. We hope this article lays the foundation for your site to generate valuable insights day in, day out.

Why We Chose Drupal Organic Groups: A Comparative Study

By sivakumar.pattabhiraman Tue, 04/07/2015 - 22:00 3 Comments

This article explains why we went ahead with Organic Groups for one of our Drupal projects. As part of our research, we did a detailed analysis of the following platforms: Organic Groups, Open Atrium, Drupal Commons, Open Scholar and Domain Access. We have listed the positive and negatives in the article. You will understand why we finally decided to go with Organic Groups. Follow this article to make informed decisions while choosing a platform for your business needs.

Drupal Testing Methodologies Are Broken - Here's Why

By neerav.mehta Fri, 03/20/2015 - 21:31 11 Comments

Currently available Drupal testing methodologies are broken. They are nowhere close to being enterprise-ready. All Drupal developers who have worked on long-term projects have felt this pain. Yes, Drupal 7 ships with Simpletest module but it has two problems: (1) Drupal 7 is not unit-test friendly, and (2) Simpletest module requires reconfiguring the site from scratch. Any Drupal developer who wants to test Drupal today is using functional testing tools such as BDD, Sahi or Selenium. But because of the need to bootstrap Drupal, functional testing still takes a long time to complete. What is needed is an integration testing framework that doesn't bootstrap Drupal on every request and which makes it easy for developers to write and maintain tests. Red Crackle has developed such a framework specifically for testing Drupal. It understands Drupal so that all the mundane tasks of setting up test objects is done automatically in background and the developer just has to concentrate on writing business logic of the test.

How to install Drupal 7 with Nginx, PHP-FPM and MySQL on Ubuntu 14.04

By neerav.mehta Sun, 03/15/2015 - 08:00 15 Comments

Ubuntu 14.04's package manager (apt) installs PHP 5.5 by default. Although Drupal 7 core works on PHP 5.5, some contributed modules may not. In that case, you may either need to fix the module or downgrade to a lower version of PHP. In this article, we will show you how to install PHP 5.3.29 with PHP-FPM on Ubuntu 14.04. On top of this, we will install Nginx and MySQL to have a working Drupal 7 website.

Using Views Exposed Filter In Drupal 8

By rakesh.james Thu, 03/05/2015 - 00:35 1 Comments

This article takes you through the steps required to use Views Exposed Filter in Drupal 8. Exposed filters provide users with the freedom to sort content on their own. This feature is beneficial, in particular, for online stores where customers seek to filter products of their choice. The filter could be based on price, brand or size.

In this article, a new view is created, a path provided and the display format altered to showcase content titles. The Filter Criteria is then configured. The screenshots accompanying this article will provide you with clear instructions in setting up exposed filters in your application.

Using REST Export With Views In Drupal 8

By rakesh.james Mon, 03/02/2015 - 14:43 2 Comments

This article will take you through the steps required to use REST web services with Views in Drupal 8. You will have to install and enable two modules - RESTful Web Services and Serialization. Both these modules are part of a package known as Web Services. Follow the screenshots accompanying the article as we create a REST Export view, specify a REST Export path and enable json settings.

Ready to get Started?