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

ConcatedNameResolverSpec   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
c 1
b 0
f 0
dl 0
loc 20
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\PropertyNameResolver;
14
15
use BitBag\SyliusElasticsearchPlugin\PropertyNameResolver\ConcatedNameResolver;
16
use BitBag\SyliusElasticsearchPlugin\PropertyNameResolver\ConcatedNameResolverInterface;
17
use PhpSpec\ObjectBehavior;
18
19
final class ConcatedNameResolverSpec extends ObjectBehavior
20
{
21
    function let(): void
22
    {
23
        $this->beConstructedWith('Book');
24
    }
25
26
    function it_is_initializable(): void
27
    {
28
        $this->shouldHaveType(ConcatedNameResolver::class);
29
    }
30
31
    function it_implements_concated_name_resolver_interface(): void
32
    {
33
        $this->shouldHaveType(ConcatedNameResolverInterface::class);
34
    }
35
36
    function it_resolves_property_name(): void
37
    {
38
        $this->resolvePropertyName('En')->shouldBeEqualTo('book_en');
39
    }
40
}
41