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

GalleryItemAdminTest::testItIsInstantiable()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
c 0
b 0
f 0
nc 1
nop 0
dl 0
loc 4
rs 10
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