Session

Drupal Unit testing has never been easier, with Test Helpers!

Problem: “Unit testing takes time”, “Unit testing is difficult”, “Unit testing requires high skills”, “Let’s release the feature already and postpone unit tests”.

Does your organization, your team or even yourself recognize any of the above? If the answer is yes, then this session is for you.

Unit testing your code is a practice every project should have! But they are hard to write, especially for Drupal with its services and entities, therefore very often writing a unit test takes much more time and produces a lot more code than the tested function itself!

And you need a lot of skills and time, good knowledge of all the services you need to mock, initialize, inject… The way they interact with each other for something as simple as loading a Drupal node.

Fear no more! That was before the “Test Helpers” contrib module.

"Test Helpers" allows you to significantly reduce your time and the amount of code when writing unit tests!

You can easily get a working stub of an Entity together with EntityType, EntityStorage, save(), delete(), load(), loadMultiple(), loadByUuid(), loadByProperties() and other related functions, just via a single line of code!

Join me in this session, so you can master the not-any-more dark art of writing unit tests.

Save your team, client, organization unexpected headaches! 😉

Alexey Korepov

Lead Software Engineer

Yerevan, Armenia

Actions

Please note that Sessionize is not responsible for the accuracy or validity of the data provided by speakers. If you suspect this profile to be fake or spam, please let us know.

Jump to top