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

ProductDescriptionBuilderSpec   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 6
c 1
b 0
f 0
dl 0
loc 21
rs 10
wmc 4
1
<?php
2
3
declare(strict_types=1);
4
5
namespace spec\BitBag\SyliusElasticsearchPlugin\PropertyBuilder;
6
7
use BitBag\SyliusElasticsearchPlugin\PropertyBuilder\AbstractBuilder;
8
use BitBag\SyliusElasticsearchPlugin\PropertyBuilder\ProductDescriptionBuilder;
9
use BitBag\SyliusElasticsearchPlugin\PropertyBuilder\PropertyBuilderInterface;
10
use BitBag\SyliusElasticsearchPlugin\PropertyNameResolver\ConcatedNameResolverInterface;
11
use FOS\ElasticaBundle\Event\TransformEvent;
12
use PhpSpec\ObjectBehavior;
13
14
final class ProductDescriptionBuilderSpec extends ObjectBehavior
15
{
16
    function let(ConcatedNameResolverInterface $productNameNameResolver): void
17
    {
18
        $this->beConstructedWith($productNameNameResolver);
19
    }
20
21
    function it_is_initializable(): void
22
    {
23
        $this->shouldHaveType(ProductDescriptionBuilder::class);
24
        $this->shouldHaveType(AbstractBuilder::class);
25
    }
26
27
    function it_implements_property_builder_interface(): void
28
    {
29
        $this->shouldHaveType(PropertyBuilderInterface::class);
30
    }
31
32
    function it_consumes_event(TransformEvent $event): void
33
    {
34
        $this->consumeEvent($event);
35
    }
36
}
37