<commit_before><?php

/*
 * This file is part of the Sylius package.
 *
 * (c) <NAME>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

declare(strict_types=1);

namespace spec\Sylius\Bundle\ShopBundle\EmailManager;

use PhpSpec\ObjectBehavior;
use Sylius\Bundle\ShopBundle\EmailManager\ContactEmailManager;
use Sylius\Bundle\ShopBundle\EmailManager\ContactEmailManagerInterface;
use Sylius\Component\Mailer\Sender\SenderInterface;

/**
 * @author <NAME> <<EMAIL>>
 */
final class ContactEmailManagerSpec extends ObjectBehavior
{
    function let(SenderInterface $sender)
    {
        $this->beConstructedWith($sender);
    }

    function it_is_initializable()
    {
        $this->shouldHaveType(ContactEmailManager::class);
    }

    function it_implements_a_contact_email_manager_interface()
    {
        $this->shouldImplement(ContactEmailManagerInterface::class);
    }

    function it_sends_a_contact_request_email(SenderInterface $sender)
    {
        $sender
            ->send(
                'contact_request',
                ['<EMAIL>'],
                [
                    'data' => [
                        'email' => '<EMAIL>',
                        'message' => 'Hello!',
                    ],
                ]
            )<commit_msg>fix ContactEmailManagerSpec<commit_after><?php

/*
 * This file is part of the Sylius package.
 *
 * (c) <NAME>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

declare(strict_types=1);

namespace spec\Sylius\Bundle\ShopBundle\EmailManager;

use PhpSpec\ObjectBehavior;
use Sylius\Bundle\ShopBundle\EmailManager\ContactEmailManager;
use Sylius\Bundle\ShopBundle\EmailManager\ContactEmailManagerInterface;
use Sylius\Component\Mailer\Sender\SenderInterface;

/**
 * @author <NAME> <<EMAIL>>
 */
final class ContactEmailManagerSpec extends ObjectBehavior
{
    function let(SenderInterface $sender)
    {
        $this->beConstructedWith($sender);
    }

    function it_is_initializable()
    {
        $this->shouldHaveType(ContactEmailManager::class);
    }

    function it_implements_a_contact_email_manager_interface()
    {
        $this->shouldImplement(ContactEmailManagerInterface::class);
    }

    function it_sends_a_contact_request_email(SenderInterface $sender)
    {
        $sender
            ->send(
                'contact_request',
                ['<EMAIL>'],
                [
                    'data' => [
                        'email' => '<EMAIL>',
                        'message' => 'Hello!',
                    ],
                ],
                [],
                ['<EMAIL>']
            )
{'fraction_non_alphanumeric': 0.10705244122965642, 'fraction_numerical': 0.0007233273056057866, 'mean_word_length': 2.3649635036496353, 'pattern_counts': {'":': 0, '<': 18, '<?xml version=': 0, '>': 30, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4672344', 'n_tokens_mistral': 776, 'n_tokens_neox': 755, 'n_words': 144}