Completed
Push — 1.0-composer-fixes ( df0dc6 )
by Kamil
49:36 queued 29:22
created

OrderSequenceSpec   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 0
dl 0
loc 22
c 0
b 0
f 0
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
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 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
declare(strict_types=1);
13
14
namespace spec\Sylius\Component\Core\Model;
15
16
use PhpSpec\ObjectBehavior;
17
use Sylius\Component\Core\Model\OrderSequenceInterface;
18
use Sylius\Component\Order\Model\OrderSequence as BaseOrderSequence;
19
use Sylius\Component\Resource\Model\VersionedInterface;
20
21
final class OrderSequenceSpec extends ObjectBehavior
22
{
23
    function it_implements_an_order_sequence_interface(): void
24
    {
25
        $this->shouldImplement(OrderSequenceInterface::class);
26
    }
27
28
    function it_implements_a_versioned_interface(): void
29
    {
30
        $this->shouldImplement(VersionedInterface::class);
31
    }
32
33
    function it_extends_an_order_sequence(): void
34
    {
35
        $this->shouldHaveType(BaseOrderSequence::class);
36
    }
37
38
    function it_has_version_1_by_default(): void
39
    {
40
        $this->getVersion()->shouldReturn(1);
41
    }
42
}
43