Code Duplication    Length = 9-9 lines in 2 locations

src/Bundle/ResourceBundle/Tests/Form/Extension/BooleanExtensionTest.php 2 locations

@@ 104-112 (lines=9) @@
101
    /**
102
     * @dataProvider validSubmitProvider
103
     */
104
    public function testValidSubmittedData($expected, $data)
105
    {
106
        $form = $this->formFactory
107
            ->create(CheckboxType::class, null, ['api' => true])
108
            ->submit($data);
109
110
        $this->assertTrue($form->isValid());
111
        $this->assertSame($expected, $form->getData());
112
    }
113
114
    /**
115
     * @dataProvider invalidProvider
@@ 117-125 (lines=9) @@
114
    /**
115
     * @dataProvider invalidProvider
116
     */
117
    public function testInvalidSubmittedData($data)
118
    {
119
        $form = $this->formFactory
120
            ->create(CheckboxType::class, null, ['api' => true])
121
            ->submit($data);
122
123
        $this->assertFalse($form->isValid());
124
        $this->assertNull($form->getData());
125
    }
126
127
    /**
128
     * @expectedException \Symfony\Component\OptionsResolver\Exception\InvalidOptionsException