Completed
Pull Request — master (#281)
by Christian
29:36
created

ConfigurationTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 1
c 1
b 0
f 1
lcom 0
cbo 2
dl 0
loc 16
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A testOptions() 0 13 1
1
<?php
2
3
namespace Sonata\NewsBundle\Tests;
4
5
use Sonata\NewsBundle\DependencyInjection\Configuration;
6
use Symfony\Component\Config\Definition\Processor;
7
8
class ConfigurationTest extends \PHPUnit_Framework_TestCase
9
{
10
    public function testOptions()
11
    {
12
        $processor = new Processor();
13
14
        $config = $processor->processConfiguration(new Configuration(), array(array(
15
            'title'       => 'Foo title',
16
            'link'        => '/foo/bar',
17
            'description' => 'Foo description',
18
            'salt'        => 'pepper',
19
        )));
20
21
        $this->assertSame('news__post_tag', $config['table']['post_tag']);
22
    }
23
}
24