for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the WPSymfonyForm plugin.
*
* Copyright (c) 2015-2016 LIN3S <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace spec\LIN3S\WPSymfonyForm\Action;
use LIN3S\WPSymfonyForm\Action\Action;
use LIN3S\WPSymfonyForm\Action\MailerAction;
use PhpSpec\ObjectBehavior;
use Symfony\Component\Form\FormInterface;
/**
* Spec file of MailerAction.
* @author Beñat Espiña <[email protected]>
class MailerActionSpec extends ObjectBehavior
{
function let()
$this->beConstructedWith('[email protected]', '<html>The template</html>', 'The email subject');
}
function it_is_initializable()
$this->shouldHaveType(MailerAction::class);
function it_implements_action()
$this->shouldImplement(Action::class);
function it_does_not_execute_because_timber_does_not_found(FormInterface $form)
$this->shouldThrow(\InvalidArgumentException::class)->duringExecute($form);