Code Duplication    Length = 49-52 lines in 3 locations

src/Kunstmaan/PagePartBundle/Tests/Entity/LinePagePartTest.php 1 location

@@ 10-58 (lines=49) @@
7
/**
8
 * LinePagePartTest
9
 */
10
class LinePagePartTest extends \PHPUnit_Framework_TestCase
11
{
12
    /**
13
     * @var LinePagePart
14
     */
15
    protected $object;
16
17
    /**
18
     * Sets up the fixture, for example, opens a network connection.
19
     * This method is called before a test is executed.
20
     */
21
    protected function setUp()
22
    {
23
        $this->object = new LinePagePart();
24
    }
25
26
    /**
27
     * Tears down the fixture, for example, closes a network connection.
28
     * This method is called after a test is executed.
29
     */
30
    protected function tearDown()
31
    {
32
    }
33
34
    /**
35
     * @covers Kunstmaan\PagePartBundle\Entity\LinePagePart::__toString
36
     */
37
    public function testToString()
38
    {
39
        $this->assertEquals('LinePagePart', $this->object->__toString());
40
    }
41
42
    /**
43
     * @covers Kunstmaan\PagePartBundle\Entity\LinePagePart::getDefaultView
44
     */
45
    public function testGetDefaultView()
46
    {
47
        $this->assertEquals('KunstmaanPagePartBundle:LinePagePart:view.html.twig', $this->object->getDefaultView());
48
    }
49
50
    /**
51
     * @covers Kunstmaan\PagePartBundle\Entity\LinePagePart::getDefaultAdminType
52
     */
53
    public function testGetDefaultAdminType()
54
    {
55
        $this->assertEquals('Kunstmaan\PagePartBundle\Form\LinePagePartAdminType', $this->object->getDefaultAdminType());
56
    }
57
58
}
59

src/Kunstmaan/PagePartBundle/Tests/Entity/TocPagePartTest.php 1 location

@@ 8-59 (lines=52) @@
5
/**
6
 * Generated by PHPUnit_SkeletonGenerator on 2012-08-20 at 14:38:48.
7
 */
8
class TocPagePartTest extends \PHPUnit_Framework_TestCase
9
{
10
    /**
11
     * @var TocPagePart
12
     */
13
    protected $object;
14
15
    /**
16
     * Sets up the fixture, for example, opens a network connection.
17
     * This method is called before a test is executed.
18
     */
19
    protected function setUp()
20
    {
21
        $this->object = new TocPagePart();
22
    }
23
24
    /**
25
     * Tears down the fixture, for example, closes a network connection.
26
     * This method is called after a test is executed.
27
     */
28
    protected function tearDown()
29
    {
30
    }
31
32
    /**
33
     * Generated from @assert () == 'TocPagePart'.
34
     *
35
     * @covers                Kunstmaan\PagePartBundle\Entity\TocPagePart::__toString
36
     */
37
    public function testToString()
38
    {
39
        $this->assertEquals('TocPagePart', $this->object->__toString());
40
    }
41
42
    /**
43
     * Generated from @assert () == 'KunstmaanPagePartBundle:TocPagePart:view.html.twig'.
44
     *
45
     * @covers                Kunstmaan\PagePartBundle\Entity\TocPagePart::getDefaultView
46
     */
47
    public function testGetDefaultView()
48
    {
49
        $this->assertEquals('KunstmaanPagePartBundle:TocPagePart:view.html.twig', $this->object->getDefaultView());
50
    }
51
52
    /**
53
     * @covers Kunstmaan\PagePartBundle\Entity\TocPagePart::getDefaultAdminType
54
     */
55
    public function testGetDefaultAdminType()
56
    {
57
        $this->assertEquals('Kunstmaan\PagePartBundle\Form\TocPagePartAdminType', $this->object->getDefaultAdminType());
58
    }
59
}
60

src/Kunstmaan/PagePartBundle/Tests/Entity/ToTopPagePartTest.php 1 location

@@ 8-59 (lines=52) @@
5
/**
6
 * Generated by PHPUnit_SkeletonGenerator on 2012-08-20 at 14:35:32.
7
 */
8
class ToTopPagePartTest extends \PHPUnit_Framework_TestCase
9
{
10
    /**
11
     * @var ToTopPagePart
12
     */
13
    protected $object;
14
15
    /**
16
     * Sets up the fixture, for example, opens a network connection.
17
     * This method is called before a test is executed.
18
     */
19
    protected function setUp()
20
    {
21
        $this->object = new ToTopPagePart();
22
    }
23
24
    /**
25
     * Tears down the fixture, for example, closes a network connection.
26
     * This method is called after a test is executed.
27
     */
28
    protected function tearDown()
29
    {
30
    }
31
32
    /**
33
     * Generated from @assert () == 'ToTopPagePart'.
34
     *
35
     * @covers                Kunstmaan\PagePartBundle\Entity\ToTopPagePart::__toString
36
     */
37
    public function testToString()
38
    {
39
        $this->assertEquals('ToTopPagePart', $this->object->__toString());
40
    }
41
42
    /**
43
     * Generated from @assert () == 'KunstmaanPagePartBundle:ToTopPagePart:view.html.twig'.
44
     *
45
     * @covers                Kunstmaan\PagePartBundle\Entity\ToTopPagePart::getDefaultView
46
     */
47
    public function testGetDefaultView()
48
    {
49
        $this->assertEquals('KunstmaanPagePartBundle:ToTopPagePart:view.html.twig', $this->object->getDefaultView());
50
    }
51
52
    /**
53
     * @covers Kunstmaan\PagePartBundle\Entity\ToTopPagePart::getDefaultAdminType
54
     */
55
    public function testGetDefaultAdminType()
56
    {
57
        $this->assertEquals('Kunstmaan\PagePartBundle\Form\ToTopPagePartAdminType', $this->object->getDefaultAdminType());
58
    }
59
}
60