Completed
Push — master ( fce8e6...b0acfe )
by GBProd
02:14
created

ConfigurationTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 4

Importance

Changes 2
Bugs 0 Features 1
Metric Value
wmc 1
c 2
b 0
f 1
lcom 0
cbo 4
dl 0
loc 19
rs 10
1
<?php
2
3
namespace Tests\GBProd\ElasticsearchDataProviderBundle\DependencyInjection;
4
5
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
6
use GBProd\ElasticsearchDataProviderBundle\DependencyInjection\Configuration;
7
8
/**
9
 * Tests for Configuration
10
 *
11
 * @author gbprod <[email protected]>
12
 */
13
class ConfigurationTest extends \PHPUnit_Framework_TestCase
14
{
15
    public function testGetConfigTreeBuilder()
16
    {
17
        $configuration = new Configuration();
18
19
        $tree = $configuration->getConfigTreeBuilder();
20
21
        $this->assertInstanceOf(
22
            TreeBuilder::class,
23
            $tree
24
        );
25
26
        $this->assertEquals(
27
            'elasticsearch_dataprovider',
28
            $tree->buildTree()->getName()
29
        );
30
    }
31
}