Add tweets to TDD talk

This commit is contained in:
Oliver Davies 2018-06-20 22:56:25 +01:00
parent a1f934b8c1
commit 0a4c48b287
4 changed files with 38 additions and 3 deletions

View file

@ -10,5 +10,6 @@
{% include 'talk/slides' %}
{% include 'talk/video' %}
{% include 'talk/tweets' %}
{% include 'talk/events' %}
{% endblock %}

View file

@ -0,0 +1,7 @@
{% if page.blocks.tweets %}
<div class="mt-6">
<h2>Tweets</h2>
{{ page.blocks.tweets|raw }}
</div>
{% endif %}

View file

@ -1,5 +1,10 @@
<p>
<blockquote class="twitter-tweet" data-cards="hidden" lang="en">
<div class="{{ class }}">
<blockquote
class="twitter-tweet"
data-cards="hidden"
data-conversation="none"
lang="en"
>
{{ content|raw }}
</blockquote>
</p>
</div>

View file

@ -7,6 +7,7 @@ speakerdeck:
youtube:
id: fdbxXOi2HP4
tags: [drupalcamp, simpletest, phpunit, testing]
has_tweets: true
meta:
og:
title: TDD - Test Driven Drupal
@ -33,8 +34,29 @@ events:
date: '2018-07-05'
time: '12:15 - 13:00'
---
{% block content %}
Testing is important. Why? It allows developers to add new features and edit and refactor existing code without the worry of adding regressions, reduces the reliance on manual testing to discover bugs, and by taking a test driven approach, your implementation code is leaner as you only write what is needed for your tests to pass.
Drupal 7 includes the SimpleTest module for unit and functional testing, whilst Drupal 8 also includes and supports PHPUnit - the defacto PHP testing framework, used by other PHP projects including Symfony and Laravel - making it easier for people to test their code. And with testing being one of the Drupal core gates with tests needing to be included with every new feature or bug fix, and cores 100% pass rate policy, testing has become an essential skill when contributing to core, or when working on your own projects.
In this talk, well cover the methodology and terminology involved with automated testing, and then take a test driven approach to creating a new Drupal module.
{% endblock %}
{% block tweets %}
<div class="flex flex-wrap -mx-2">
{% include 'tweet' with {
class: 'w-full sm:w-1/2 lg:w-1/3 px-2 flex flex-col',
content: '<p lang="en" dir="ltr">An informative session on <a href="https://twitter.com/hashtag/TDD?src=hash&amp;ref_src=twsrc%5Etfw">#TDD</a> <a href="https://twitter.com/hashtag/Drupal?src=hash&amp;ref_src=twsrc%5Etfw">#Drupal</a> <br>&quot;Test Driven Drupal Development with SimpleTest and PHPUnit - Oliver Davies&quot;<a href="https://twitter.com/opdavies?ref_src=twsrc%5Etfw">@opdavies</a> Thanks ! :) <a href="https://t.co/xQNaq8e0zU">https://t.co/xQNaq8e0zU</a></p>&mdash; जयदीप सिंह कण्डारी (@JayKandari) <a href="https://twitter.com/JayKandari/status/939598826087706624?ref_src=twsrc%5Etfw">December 9, 2017</a>',
} %}
{% include 'tweet' with {
class: 'w-full sm:w-1/2 lg:w-1/3 px-2 flex flex-col',
content: '<p lang="en" dir="ltr">Really motivational and well delivered talk from <a href="https://twitter.com/opdavies?ref_src=twsrc%5Etfw">@opdavies</a> tonight. Structured brilliantly - I don&#39;t think anybody left not wanting to write tests! &quot;Test Driven Drupal&quot; 💧 <a href="https://twitter.com/hashtag/Drupal8?src=hash&amp;ref_src=twsrc%5Etfw">#Drupal8</a> <a href="https://twitter.com/hashtag/testing?src=hash&amp;ref_src=twsrc%5Etfw">#testing</a> <a href="https://twitter.com/hashtag/drupal?src=hash&amp;ref_src=twsrc%5Etfw">#drupal</a> <a href="https://t.co/bvQf7WFwdy">pic.twitter.com/bvQf7WFwdy</a></p>&mdash; Drupal Somerset (@drupalsomerset) <a href="https://twitter.com/drupalsomerset/status/1007413440875565056?ref_src=twsrc%5Etfw">June 15, 2018</a>',
} %}
{% include 'tweet' with {
class: 'w-full sm:w-1/2 lg:w-1/3 px-2 flex flex-col',
content: '<p lang="en" dir="ltr">Terrible quality photo but the talk drove me to test and it&#39;s great so far, it&#39;s really helped give me peace of mind and helped me uncover a bug I wouldn&#39;t have otherwise :) so thank you 😁</p>&mdash; Tawny Bartlett (@littlepixiez) <a href="https://twitter.com/littlepixiez/status/1009189555600273409?ref_src=twsrc%5Etfw">June 19, 2018</a>',
} %}
</div>
{% endblock %}