mirror of
https://github.com/wallabag/wallabag.git
synced 2025-08-01 17:38:38 +00:00
Fix tests
This commit is contained in:
parent
4b3c983ab8
commit
e1632cea0e
1 changed files with 2 additions and 10 deletions
|
@ -26,7 +26,6 @@ class AuthCodeMailerTest extends \PHPUnit_Framework_TestCase
|
||||||
protected $mailer;
|
protected $mailer;
|
||||||
protected $spool;
|
protected $spool;
|
||||||
protected $twig;
|
protected $twig;
|
||||||
protected $config;
|
|
||||||
|
|
||||||
protected function setUp()
|
protected function setUp()
|
||||||
{
|
{
|
||||||
|
@ -44,14 +43,6 @@ class AuthCodeMailerTest extends \PHPUnit_Framework_TestCase
|
||||||
TWIG;
|
TWIG;
|
||||||
|
|
||||||
$this->twig = new \Twig_Environment(new \Twig_Loader_Array(['WallabagUserBundle:TwoFactor:email_auth_code.html.twig' => $twigTemplate]));
|
$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()
|
public function testSendEmail()
|
||||||
|
@ -67,7 +58,8 @@ TWIG;
|
||||||
$this->twig,
|
$this->twig,
|
||||||
'nobody@test.io',
|
'nobody@test.io',
|
||||||
'wallabag test',
|
'wallabag test',
|
||||||
$this->config
|
'http://0.0.0.0/support',
|
||||||
|
'http://0.0.0.0/'
|
||||||
);
|
);
|
||||||
|
|
||||||
$authCodeMailer->sendAuthCode($user);
|
$authCodeMailer->sendAuthCode($user);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue