Completed
Push — template-events-system ( 9bf74a...bcfbd4 )
by Kamil
04:53
created

TemplateBlockSpec   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A it_represents_a_template_block() 0 9 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', 10, false);
23
24
        $this->name()->shouldReturn('block_name');
25
        $this->template()->shouldReturn('block.html.twig');
26
        $this->priority()->shouldReturn(10);
27
        $this->enabled()->shouldReturn(false);
28
    }
29
}
30