Completed
Pull Request — 5.0 (#2162)
by Kevin
14:33
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
namespace Kunstmaan\PagePartBundle\Tests\Entity;
3
use Kunstmaan\PagePartBundle\Entity\ToTopPagePart;
4
5
/**
6
 * Generated by PHPUnit_SkeletonGenerator on 2012-08-20 at 14:35:32.
7
 */
8 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...
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