Completed
Branch custom_translations (7e9ce6)
by Antonio
08:29
created

TableTypeTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 6
dl 0
loc 12
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A testAttributeTypeIsRegisteredCorrect() 0 10 1
1
<?php
2
3
namespace Flagbit\Bundle\TableAttributeBundle\Test\AttributeType;
4
5
use Flagbit\Bundle\TableAttributeBundle\AttributeType\TableType;
6
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
7
8
class TableTypeTest extends KernelTestCase
9
{
10
    public function testAttributeTypeIsRegisteredCorrect()
11
    {
12
        self::bootKernel();
13
        $container = self::$kernel->getContainer();
14
15
        $attributeTypeRegistry = $container->get('pim_catalog.registry.attribute_type');
16
17
        $attributeType = $attributeTypeRegistry->get('flagbit_catalog_table');
18
19
        self::assertInstanceOf(TableType::class, $attributeType);
20
    }
21
}
22