aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/Wallabag/UserBundle/Mailer
diff options
context:
space:
mode:
authorJeremy Benoist <jeremy.benoist@gmail.com>2019-06-21 12:46:53 +0200
committerJeremy Benoist <jeremy.benoist@gmail.com>2019-06-21 12:46:53 +0200
commita2f4efe6d2a90d8a2b84a275f48a07dc8aa0a84f (patch)
tree85c658988b4a769c535e8d3c7a34b573e40818c6 /tests/Wallabag/UserBundle/Mailer
parent0a01a5f195fa00be0290be1871b6f4798e55d0be (diff)
downloadwallabag-a2f4efe6d2a90d8a2b84a275f48a07dc8aa0a84f.tar.gz
wallabag-a2f4efe6d2a90d8a2b84a275f48a07dc8aa0a84f.tar.zst
wallabag-a2f4efe6d2a90d8a2b84a275f48a07dc8aa0a84f.zip
Use Twig 2.0
`mnapoli/piwik-twig-extension` locked Twig to the 1.10 version. The new version is compatible with Twig 2.0
Diffstat (limited to 'tests/Wallabag/UserBundle/Mailer')
-rw-r--r--tests/Wallabag/UserBundle/Mailer/AuthCodeMailerTest.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/Wallabag/UserBundle/Mailer/AuthCodeMailerTest.php b/tests/Wallabag/UserBundle/Mailer/AuthCodeMailerTest.php
index 1713c10c..4f93a92c 100644
--- a/tests/Wallabag/UserBundle/Mailer/AuthCodeMailerTest.php
+++ b/tests/Wallabag/UserBundle/Mailer/AuthCodeMailerTest.php
@@ -3,6 +3,8 @@
3namespace Tests\Wallabag\UserBundle\Mailer; 3namespace Tests\Wallabag\UserBundle\Mailer;
4 4
5use PHPUnit\Framework\TestCase; 5use PHPUnit\Framework\TestCase;
6use Twig\Environment;
7use Twig\Loader\ArrayLoader;
6use Wallabag\UserBundle\Entity\User; 8use Wallabag\UserBundle\Entity\User;
7use Wallabag\UserBundle\Mailer\AuthCodeMailer; 9use Wallabag\UserBundle\Mailer\AuthCodeMailer;
8 10
@@ -27,7 +29,7 @@ class AuthCodeMailerTest extends TestCase
27{% block body_text %}text body {{ support_url }}{% endblock %} 29{% block body_text %}text body {{ support_url }}{% endblock %}
28TWIG; 30TWIG;
29 31
30 $this->twig = new \Twig_Environment(new \Twig_Loader_Array(['WallabagUserBundle:TwoFactor:email_auth_code.html.twig' => $twigTemplate])); 32 $this->twig = new Environment(new ArrayLoader(['WallabagUserBundle:TwoFactor:email_auth_code.html.twig' => $twigTemplate]));
31 } 33 }
32 34
33 public function testSendEmail() 35 public function testSendEmail()