Our first PHPunit test in Drupal 8

11:40
325
12
0
0
3
Jul 16, 2019

In this video, we are going to create our first PHPUnit test and we are going to run it.

If you liked this video, please also have a look at my course about Drupal 8 module development here (with 50% discount):
https://goo.gl/LPyeDw

ūü§ď Support and continue learning on Patreon:
https://www.patreon.com/drupal_up

Here is the module before we implement the test:
https://github.com/drupal-up/drupalup_fibo

Here is the full code of this video with the test:
https://github.com/drupal-up/drupalup_fibo_test

Documentation on drupal.org:
https://www.drupal.org/docs/8/phpunit/phpunit-file-structure-namespace-…

Assertions in PHPUnit:
https://phpunit.readthedocs.io/en/8.2/assertions.html

More videos and stuff you may find on https://drupal-up.com

To support us please, don't forget to share, subscribe, like and comment on the video!

Hi! I'm Karim Boudjema, the developer and site-builder of this site. I'm currently working as a freelance Drupal developer.

I was wondering how could I giving back to the Drupal community all what it gave to me during the last 10 years, that's how the idea of this site came to me ... (read more)

Hi! I’m Santiago Rico, the web designer and themer of this site.

When Karim proposed me to design and theme this site for the Drupal community, I accepted immediately because the community is the main reason why I love Drupal so much.