Completed
Push — master ( 52cd2c...047880 )
by Kamil
47:26 queued 26:32
created

TemplateBlockSpec   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A it_represents_a_template_block() 0 10 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\Bundle\UiBundle\Registry;
15
16
use PhpSpec\ObjectBehavior;
17
18
final class TemplateBlockSpec extends ObjectBehavior
19
{
20
    function it_represents_a_template_block(): void
21
    {
22
        $this->beConstructedWith('block_name', 'block.html.twig', ['foo' => 'bar'], 10, false);
23
24
        $this->getName()->shouldReturn('block_name');
25
        $this->getTemplate()->shouldReturn('block.html.twig');
26
        $this->getContext()->shouldReturn(['foo' => 'bar']);
27
        $this->getPriority()->shouldReturn(10);
28
        $this->isEnabled()->shouldReturn(false);
29
    }
30
}
31