Code Duplication    Length = 31-45 lines in 3 locations

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

@@ 10-40 (lines=31) @@
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

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

@@ 10-40 (lines=31) @@
7
/**
8
 * Generated by PHPUnit_SkeletonGenerator on 2012-08-20 at 14:38:48.
9
 */
10
class TocPagePartTest extends \PHPUnit_Framework_TestCase
11
{
12
    /**
13
     * @var TocPagePart
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 TocPagePart();
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
     * Generated from @assert () == 'TocPagePart'.
36
     *
37
     * @covers                \Kunstmaan\PagePartBundle\Entity\TocPagePart::__toString
38
     */
39
    public function testToString()
40
    {
41
        $this->assertEquals('TocPagePart', $this->object->__toString());
42
    }
43

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

@@ 10-54 (lines=45) @@
7
/**
8
 * Generated by PHPUnit_SkeletonGenerator on 2012-08-20 at 14:35:32.
9
 */
10
class ToTopPagePartTest extends \PHPUnit_Framework_TestCase
11
{
12
    /**
13
     * @var ToTopPagePart
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 ToTopPagePart();
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
     * Generated from @assert () == 'ToTopPagePart'.
36
     *
37
     * @covers                \Kunstmaan\PagePartBundle\Entity\ToTopPagePart::__toString
38
     */
39
    public function testToString()
40
    {
41
        $this->assertEquals('ToTopPagePart', $this->object->__toString());
42
    }
43
44
    /**
45
     * Generated from @assert () == 'KunstmaanPagePartBundle:ToTopPagePart:view.html.twig'.
46
     *
47
     * @covers                \Kunstmaan\PagePartBundle\Entity\ToTopPagePart::getDefaultView
48
     */
49
    public function testGetDefaultView()
50
    {
51
        $this->assertEquals('KunstmaanPagePartBundle:ToTopPagePart:view.html.twig', $this->object->getDefaultView());
52
    }
53
54
    /**
55
     * @covers \Kunstmaan\PagePartBundle\Entity\ToTopPagePart::getDefaultAdminType
56
     */
57
    public function testGetDefaultAdminType()