Blog: drupal planet

Rodrigo Aguilera's picture
Rodrigo Aguilera

Creating default content for easier testing on Drupal 8

While working with Drupal 7 we had some development workflows that worked very well for us and now we want to adapt those workflows to the new major version of Drupal.

One of this "development features" as you may call them was the possibility of having some predefined content that can be recreated at any time to test the site. For example you don't have to worry about creating new users that represent the different roles every time you set up a fresh site, they will be there.

Cristina Chumillas's picture
Cristina Chumillas

New Orleans DrupalCon restrospective

This year I have been for the very first time in a north american DrupalCon. After Amsterdam and Barcelona, ​​this time I went to New Orleans from 9th to 13th of May. For those who have never been in a Drupalcon the main event is from Tuesday to Thursday with sessions and other activities, but there are many other activities during the rest of the week and the weekends before and after. While Monday is for trainings, Summits and...

Rodrigo Aguilera's picture
Rodrigo Aguilera

Test JavaScript interactions with Behat

Following the series Mercè started and the talks I have been giving I wanted to write a bit more about Behat and some niceties that I learned on the way.

One of the main points people get interested on Behat is not only because you can use natural language to describe and test your application but also because all the tests are able to run in a real browser.

Let’s make an overview of the main pieces available to achieve a broader testing strategy.

Pako Garcia's picture
Pako Garcia

How we lived DrupalCamp Spain 2016

This past weekend we had the big pleasure of attending and enjoy, like we do every year, of DrupalCamp Spain 2016, the most important national Drupal event in Spain. This Drupalcamp happened in the city of Granada, at the Science park.

This year the event was longer than usual, having days with sprints since Tuesday. That made contributor attendance grow with the help of international mentors that traveled some days before.

On Friday the...

Mercè Pedraza's picture
Mercè Pedraza

How to get started with Behat

Automated testing is one of the resources that greatly facilitates the task of development and one of the tools we can use with good integration with Drupal is Behat. It's an open source framework for behavioral testing, and that means that the testing is done using the web as a user would do.

One of its main strengths is its readability: it is written in natural language describing the behavior to be tested, and allows us to check at any time if our application behaves as expected.

In Ymbra we find it especially useful to know if any new changes we have made to the code produces some regression in functionality, which can easily pass unnoticed and take some time to be detected.

Pako Garcia's picture
Pako Garcia

How to use Sass to make easily scalable styles

Nowadays frontend developers can't live without some preprocess tool that make tackling the CSS style easier.

In Ymbra we prefer Sass (Syntactically Awesome StyleSheets) in the themes of our projects, and often we opted to develop subthemes of Zen, and take advantage of all the tools and benefits that gives us regarding writing the CSS style of the project.

I would like to explain how Sass can help

...
Rodrigo Aguilera's picture
Rodrigo Aguilera

How to skip node access issues during a cron process

Few days ago in Ymbra we had a challenge about how to load Drupal 7 entities during a cron job. The main issue here is that cron doesn't run with enough credentials and we need higher permissions to perform some operations.

Those entities had user access restrictions in place and when cron runs as anonymous user (even if you trigger it logged in as the user with id=1) those restrictions were respected and we weren't able to load our entity content to be later sent in an email.

So what can we do to run cron as Drupal admin?

In a...

Pedro Cambra's picture
Pedro Cambra

DrupalCon Amsterdam Coding and Development track

While the American Drupalistas (and some brave travellers) are enjoying a fantastic DrupalCon in Austin, the Amsterdam organising comittee is working hard to produce the best European DrupalCon ever. This team is formed by Drupal Association staff and a group of volunteers, of which I am one, and at the moment we're in the process of getting session proposals and selecting the best possible content.

...

Pages

Subscribe to RSS - drupal planet