Completed
Push — master ( 8c0a67...1fafee )
by Grégoire
9s
created

GalleryItemAdminTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setUp() 0 8 1
A testItIsInstantiable() 0 4 1
1
<?php
2
3
/*
4
 * This file is part of the Sonata Project package.
5
 *
6
 * (c) Thomas Rabaix <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Sonata\MediaBundle\Tests\Admin;
13
14
use Sonata\MediaBundle\Admin\GalleryItemAdmin;
15
16
class GalleryItemAdminTest extends \PHPUnit_Framework_TestCase
17
{
18
    private $mediaAdmin;
19
20
    protected function setUp()
21
    {
22
        $this->mediaAdmin = new GalleryItemAdmin(
23
            null,
24
            'Sonata\MediaBundle\Entity\BaseGallery',
25
            'SonataMediaBundle:GalleryAdmin'
26
        );
27
    }
28
29
    public function testItIsInstantiable()
30
    {
31
        $this->assertNotNull($this->mediaAdmin);
32
    }
33
}
34