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

ConfigurationTest::testOptions()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 13
Code Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 13
rs 9.4286
cc 1
eloc 8
nc 1
nop 0
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