Completed
Push — 5.0 ( 5d9832...217db4 )
by Kristof
96:00 queued 83:47
created

PagePartBundle/Tests/Entity/ToTopPagePartTest.php (1 issue)

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php
2
3
namespace Kunstmaan\PagePartBundle\Tests\Entity;
4
5
use Kunstmaan\PagePartBundle\Entity\ToTopPagePart;
6
7
/**
8
 * Generated by PHPUnit_SkeletonGenerator on 2012-08-20 at 14:35:32.
9
 */
10 View Code Duplication
class ToTopPagePartTest extends \PHPUnit_Framework_TestCase
0 ignored issues
show
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
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()
58
    {
59
        $this->assertEquals('Kunstmaan\PagePartBundle\Form\ToTopPagePartAdminType', $this->object->getDefaultAdminType());
60
    }
61
}
62