Completed
Pull Request — 5.0 (#2162)
by Kevin
14:33
created

Tests/Form/TocPagePartAdminTypeTest.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\Form;
3
use Kunstmaan\PagePartBundle\Form\TocPagePartAdminType;
4
5
/**
6
 * Generated by PHPUnit_SkeletonGenerator on 2012-08-20 at 12:29:42.
7
 */
8 View Code Duplication
class TocPagePartAdminTypeTest extends PagePartAdminTypeTestCase
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
    /**
12
     * @var TocPagePartAdminType
13
     */
14
    protected $object;
15
16
    /**
17
     * Sets up the fixture, for example, opens a network connection.
18
     * This method is called before a test is executed.
19
     */
20
    protected function setUp()
21
    {
22
        parent::setUp();
23
        $this->object = new TocPagePartAdminType();
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\Form\TocPagePartAdminType::buildForm
36
     */
37
    public function testBuildForm()
38
    {
39
        $this->object->buildForm($this->builder, array());
40
    }
41
42
    /**
43
     * @covers Kunstmaan\PagePartBundle\Form\TocPagePartAdminType::configureOptions
44
     */
45
    public function testConfigureOptions()
46
    {
47
        $this->object->configureOptions($this->resolver);
48
        $resolve = $this->resolver->resolve();
49
        $this->assertEquals($resolve["data_class"], 'Kunstmaan\PagePartBundle\Entity\TocPagePart');
50
    }
51
}
52