Completed
Push — master ( c5c436...b453a3 )
by Ruud
15:58
created

Tests/unit/Form/ToTopPagePartAdminTypeTest.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\Form;
4
5
use Kunstmaan\PagePartBundle\Form\ToTopPagePartAdminType;
6
use Kunstmaan\PagePartBundle\Tests\unit\Form\PagePartAdminTypeTestCase;
7
use Symfony\Component\Form\FormBuilderInterface;
8
9
/**
10
 * Generated by PHPUnit_SkeletonGenerator on 2012-08-20 at 12:03:51.
11
 */
12 View Code Duplication
class ToTopPagePartAdminTypeTest 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...
13
{
14
    /**
15
     * @var ToTopPagePartAdminType
16
     */
17
    protected $object;
18
19
    protected function setUp()
20
    {
21
        parent::setUp();
22
        $this->object = new ToTopPagePartAdminType();
23
    }
24
25
    public function testBuildForm()
26
    {
27
        $builder = $this->createMock(FormBuilderInterface::class);
28
        $builder->expects($this->never())->method('add');
29
30
        $this->object->buildForm($this->builder, array());
31
    }
32
33
    public function testConfigureOptions()
34
    {
35
        $this->object->configureOptions($this->resolver);
36
        $resolve = $this->resolver->resolve();
37
        $this->assertEquals($resolve['data_class'], 'Kunstmaan\PagePartBundle\Entity\ToTopPagePart');
38
    }
39
}
40