Completed
Push — currency-cookie ( 8ef560...28b724 )
by Kamil
24:47
created

OrderSequenceSpec   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 5
c 0
b 0
f 0
lcom 0
cbo 1
dl 0
loc 27
rs 10

5 Methods

Rating   Name   Duplication   Size   Complexity  
A it_is_initializable() 0 4 1
A it_implements_an_order_sequence_interface() 0 4 1
A it_implements_a_versioned_interface() 0 4 1
A it_extends_an_order_sequence() 0 4 1
A it_has_version_1_by_default() 0 4 1
1
<?php
2
3
/*
4
 * This file is a 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\Core\Model;
13
14
use PhpSpec\ObjectBehavior;
15
use Sylius\Component\Core\Model\OrderSequence;
16
use Sylius\Component\Core\Model\OrderSequenceInterface;
17
use Sylius\Component\Order\Model\OrderSequence as BaseOrderSequence;
18
use Sylius\Component\Resource\Model\VersionedInterface;
19
20
/**
21
 * @author Grzegorz Sadowski <[email protected]>
22
 */
23
final class OrderSequenceSpec extends ObjectBehavior
24
{
25
    function it_is_initializable()
26
    {
27
        $this->shouldHaveType(OrderSequence::class);
28
    }
29
30
    function it_implements_an_order_sequence_interface()
31
    {
32
        $this->shouldImplement(OrderSequenceInterface::class);
33
    }
34
35
    function it_implements_a_versioned_interface()
36
    {
37
        $this->shouldImplement(VersionedInterface::class);
38
    }
39
40
    function it_extends_an_order_sequence()
41
    {
42
        $this->shouldHaveType(BaseOrderSequence::class);
43
    }
44
45
    function it_has_version_1_by_default()
46
    {
47
        $this->getVersion()->shouldReturn(1);
48
    }
49
}
50