Completed
Push — remove-content-bundle ( c91180...63aea7 )
by Kamil
20:12
created

EmailFactorySpec   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 1
dl 0
loc 17
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A it_is_initializable() 0 4 1
A it_implements_email_factory_interface() 0 4 1
A it_creates_new_email() 0 4 1
1
<?php
2
3
/*
4
 * This file is part of the Sylius package.
5
 *
6
 * (c) Paweł Jędrzejewski
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace spec\Sylius\Component\Mailer\Factory;
13
14
use PhpSpec\ObjectBehavior;
15
use Sylius\Component\Mailer\Factory\EmailFactory;
16
use Sylius\Component\Mailer\Factory\EmailFactoryInterface;
17
use Sylius\Component\Mailer\Model\Email;
18
19
/**
20
 * @author Mateusz Zalewski <[email protected]>
21
 */
22
final class EmailFactorySpec extends ObjectBehavior
23
{
24
    function it_is_initializable()
25
    {
26
        $this->shouldHaveType(EmailFactory::class);
27
    }
28
29
    function it_implements_email_factory_interface()
30
    {
31
        $this->shouldImplement(EmailFactoryInterface::class);
32
    }
33
34
    function it_creates_new_email()
35
    {
36
        $this->createNew()->shouldHaveType(Email::class);
37
    }
38
}
39