Passed
Push — master ( 9280cd...76fe10 )
by Simon
02:08
created

ServiceTest::getContainerExtensions()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 0
1
<?php
2
3
/*
4
 * This file is part of
5
 * 
6
 * (c) symball <http://simonball.me>
7
 * 
8
 * For the full copyright and license information, please view the LICENSE file 
9
 * that was distributed with this source code.
10
 */
11
namespace Symball\ReportBundle\Tests\Extension;
12
13
use Matthias\SymfonyDependencyInjectionTest\PhpUnit\AbstractExtensionTestCase;
14
use Symball\ReportBundle\DependencyInjection\SymballReportExtension;
15
/**
16
 * Description of ReportBundle
17
 *
18
 * @author Simon Ball <simonball at simonball dot me>
19
 */
20
class ServiceTest extends AbstractExtensionTestCase
21
{
22
    
23
    protected function getContainerExtensions() {
24
       return array(
25
         new SymballReportExtension()
26
       );
27
    }
28
    
29
    protected function getMinimalConfiguration()
30
    {
31
        return array(
32
            'default_report_path' => '/a/fake/path',
33
        );
34
    }
35
    
36
    public function testServiceIdentification() {
37
        $this->load();
38
        $this->assertContainerBuilderHasService('symball_report.excel_service');
39
        $this->assertContainerBuilderHasService('symball_report.meta');
40
        $this->assertContainerBuilderHasService('symball_report.report_builder');
41
        $this->assertContainerBuilderHasService('symball_report.pattern');
42
        $this->assertContainerBuilderHasService('symball_report.query');
43
        $this->assertContainerBuilderHasService('symball_report.style');
44
        
45
    }
46
}
47