AbstractPagePartTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A testGetViews() 0 6 1
1
<?php
2
3
namespace Kunstmaan\PagePartBundle\Tests\Entity;
4
5
use Kunstmaan\PagePartBundle\Entity\AbstractPagePart;
6
use PHPUnit\Framework\TestCase;
7
8
class PagePart extends AbstractPagePart
9
{
10
    public function getDefaultView()
11
    {
12
    }
13
14
    public function getDefaultAdminType()
15
    {
16
    }
17
}
18
19
/**
20
 * Class AbstractPagePartTest
21
 */
22
class AbstractPagePartTest extends TestCase
23
{
24
    public function testGetViews()
25
    {
26
        $part = new PagePart();
27
        $this->assertEquals('', $part->getAdminView());
28
        $this->assertEquals('', $part->getView());
29
    }
30
}
31