diff options
author | Jeremy Benoist <jeremy.benoist@gmail.com> | 2016-04-12 11:36:01 +0200 |
---|---|---|
committer | Jeremy Benoist <jeremy.benoist@gmail.com> | 2016-04-12 12:25:29 +0200 |
commit | 4094ea47712efbe58624ff74daeb1f77c9b0edcf (patch) | |
tree | 3d2c168092d0208e6ba888de969252a54bf0c6c1 /src/Wallabag/UserBundle/Tests | |
parent | 7eccbda99f16dc39ee01a0c81ab88293e9b268fd (diff) | |
download | wallabag-4094ea47712efbe58624ff74daeb1f77c9b0edcf.tar.gz wallabag-4094ea47712efbe58624ff74daeb1f77c9b0edcf.tar.zst wallabag-4094ea47712efbe58624ff74daeb1f77c9b0edcf.zip |
Convert array + phpDoc
Thanks for https://github.com/thomasbachem/php-short-array-syntax-converter
Diffstat (limited to 'src/Wallabag/UserBundle/Tests')
-rw-r--r-- | src/Wallabag/UserBundle/Tests/Mailer/AuthCodeMailerTest.php | 4 |
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 %} |
44 | TWIG; | 44 | TWIG; |
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()); |