Passed
Push — master ( 979f6d...757493 )
by US
08:39 queued 11s
created

ChannelPricingBuilderSpec   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 7
c 1
b 0
f 0
dl 0
loc 24
rs 10
wmc 4
1
<?php
2
3
/*
4
 * This file has been created by developers from BitBag.
5
 * Feel free to contact us once you face any issues or want to start
6
 * another great project.
7
 * You can find more information about us on https://bitbag.shop and write us
8
 * an email on [email protected].
9
 */
10
11
declare(strict_types=1);
12
13
namespace spec\BitBag\SyliusElasticsearchPlugin\PropertyBuilder;
14
15
use BitBag\SyliusElasticsearchPlugin\PropertyBuilder\AbstractBuilder;
16
use BitBag\SyliusElasticsearchPlugin\PropertyBuilder\ChannelPricingBuilder;
17
use BitBag\SyliusElasticsearchPlugin\PropertyBuilder\PropertyBuilderInterface;
18
use BitBag\SyliusElasticsearchPlugin\PropertyNameResolver\ConcatedNameResolverInterface;
19
use FOS\ElasticaBundle\Event\TransformEvent;
20
use PhpSpec\ObjectBehavior;
21
22
final class ChannelPricingBuilderSpec extends ObjectBehavior
23
{
24
    function let(
25
        ConcatedNameResolverInterface $channelPricingNameResolver
26
    ): void {
27
        $this->beConstructedWith(
28
            $channelPricingNameResolver
29
        );
30
    }
31
32
    function it_is_initializable(): void
33
    {
34
        $this->shouldHaveType(ChannelPricingBuilder::class);
35
        $this->shouldHaveType(AbstractBuilder::class);
36
    }
37
38
    function it_implements_property_builder_interface(): void
39
    {
40
        $this->shouldHaveType(PropertyBuilderInterface::class);
41
    }
42
43
    function it_consumes_event(TransformEvent $event): void
44
    {
45
        $this->consumeEvent($event);
46
    }
47
}
48