From e1632cea0e19475ff0cc642ea05b365ce651912b Mon Sep 17 00:00:00 2001 From: Jeremy Benoist Date: Sun, 30 Oct 2016 20:43:37 +0100 Subject: Fix tests --- tests/Wallabag/UserBundle/Mailer/AuthCodeMailerTest.php | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'tests/Wallabag/UserBundle/Mailer/AuthCodeMailerTest.php') diff --git a/tests/Wallabag/UserBundle/Mailer/AuthCodeMailerTest.php b/tests/Wallabag/UserBundle/Mailer/AuthCodeMailerTest.php index 441d6519..21412da6 100644 --- a/tests/Wallabag/UserBundle/Mailer/AuthCodeMailerTest.php +++ b/tests/Wallabag/UserBundle/Mailer/AuthCodeMailerTest.php @@ -26,7 +26,6 @@ class AuthCodeMailerTest extends \PHPUnit_Framework_TestCase protected $mailer; protected $spool; protected $twig; - protected $config; protected function setUp() { @@ -44,14 +43,6 @@ class AuthCodeMailerTest extends \PHPUnit_Framework_TestCase TWIG; $this->twig = new \Twig_Environment(new \Twig_Loader_Array(['WallabagUserBundle:TwoFactor:email_auth_code.html.twig' => $twigTemplate])); - - $this->config = $this->getMockBuilder('Craue\ConfigBundle\Util\Config') - ->disableOriginalConstructor() - ->getMock(); - - $this->config->expects($this->any()) - ->method('get') - ->willReturn('http://0.0.0.0/support'); } public function testSendEmail() @@ -67,7 +58,8 @@ TWIG; $this->twig, 'nobody@test.io', 'wallabag test', - $this->config + 'http://0.0.0.0/support', + 'http://0.0.0.0/' ); $authCodeMailer->sendAuthCode($user); -- cgit v1.2.3