aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/UserBundle/Tests/Mailer/AuthCodeMailerTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Wallabag/UserBundle/Tests/Mailer/AuthCodeMailerTest.php')
-rw-r--r--src/Wallabag/UserBundle/Tests/Mailer/AuthCodeMailerTest.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Wallabag/UserBundle/Tests/Mailer/AuthCodeMailerTest.php b/src/Wallabag/UserBundle/Tests/Mailer/AuthCodeMailerTest.php
index b95e195e..00967051 100644
--- a/src/Wallabag/UserBundle/Tests/Mailer/AuthCodeMailerTest.php
+++ b/src/Wallabag/UserBundle/Tests/Mailer/AuthCodeMailerTest.php
@@ -43,7 +43,7 @@ class AuthCodeMailerTest extends \PHPUnit_Framework_TestCase
43{% block body_text %}text body {{ support_url }}{% endblock %} 43{% block body_text %}text body {{ support_url }}{% endblock %}
44TWIG; 44TWIG;
45 45
46 $this->twig = new \Twig_Environment(new \Twig_Loader_Array(array('WallabagUserBundle:TwoFactor:email_auth_code.html.twig' => $twigTemplate))); 46 $this->twig = new \Twig_Environment(new \Twig_Loader_Array(['WallabagUserBundle:TwoFactor:email_auth_code.html.twig' => $twigTemplate]));
47 47
48 $this->config = $this->getMockBuilder('Craue\ConfigBundle\Util\Config') 48 $this->config = $this->getMockBuilder('Craue\ConfigBundle\Util\Config')
49 ->disableOriginalConstructor() 49 ->disableOriginalConstructor()
@@ -76,7 +76,7 @@ TWIG;
76 76
77 $msg = $this->spool->getMessages()[0]; 77 $msg = $this->spool->getMessages()[0];
78 $this->assertArrayHasKey('test@wallabag.io', $msg->getTo()); 78 $this->assertArrayHasKey('test@wallabag.io', $msg->getTo());
79 $this->assertEquals(array('nobody@test.io' => 'wallabag test'), $msg->getFrom()); 79 $this->assertEquals(['nobody@test.io' => 'wallabag test'], $msg->getFrom());
80 $this->assertEquals('subject', $msg->getSubject()); 80 $this->assertEquals('subject', $msg->getSubject());
81 $this->assertContains('text body http://0.0.0.0/support', $msg->toString()); 81 $this->assertContains('text body http://0.0.0.0/support', $msg->toString());
82 $this->assertContains('html body 666666', $msg->toString()); 82 $this->assertContains('html body 666666', $msg->toString());