-
Notifications
You must be signed in to change notification settings - Fork 41
/
ConfigurationTest.php
34 lines (27 loc) · 1.32 KB
/
ConfigurationTest.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php
/*
* This file is part of the CKEditorSonataMediaBundle package.
*
* (c) La Coopérative des Tilleuls <contact@les-tilleuls.coop>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace CoopTilleuls\Bundle\CKEditorSonataMediaBundle\Tests\DependencyInjection;
use CoopTilleuls\Bundle\CKEditorSonataMediaBundle\DependencyInjection\Configuration;
use Symfony\Component\Config\Definition\Processor;
class ConfigurationTest extends \PHPUnit_Framework_TestCase
{
public function testOptions()
{
$processor = new Processor();
$config = $processor->processConfiguration(new Configuration(), array());
$this->assertArrayHasKey('templates', $config);
$this->assertArrayHasKey('layout', $config['templates']);
$this->assertArrayHasKey('browser', $config['templates']);
$this->assertArrayHasKey('upload', $config['templates']);
$this->assertEquals('@CoopTilleulsCKEditorSonataMedia/layout.html.twig', $config['templates']['layout']);
$this->assertEquals('@CoopTilleulsCKEditorSonataMedia/MediaAdmin/browser.html.twig', $config['templates']['browser']);
$this->assertEquals('@CoopTilleulsCKEditorSonataMedia/MediaAdmin/upload.html.twig', $config['templates']['upload']);
}
}