Code Duplication    Length = 9-10 lines in 2 locations

tests/FormSpamProtectionExtensionTest.php 2 locations

@@ 67-75 (lines=9) @@
64
        $this->assertEquals('Bar', $form->Fields()->fieldByName('Captcha')->Title());
65
    }
66
67
    public function testEnableSpamProtectionCustomTitle()
68
    {
69
        $form = $this->form->enableSpamProtection(array(
70
            'protector' => BarProtector::class,
71
            'title' => 'Baz',
72
        ));
73
74
        $this->assertEquals('Baz', $form->Fields()->fieldByName('Captcha')->Title());
75
    }
76
77
    public function testCustomOptions()
78
    {
@@ 77-86 (lines=10) @@
74
        $this->assertEquals('Baz', $form->Fields()->fieldByName('Captcha')->Title());
75
    }
76
77
    public function testCustomOptions()
78
    {
79
        $form = $this->form->enableSpamProtection(array(
80
            'protector' => BazProtector::class,
81
            'title' => 'Qux',
82
            'name' => 'Borris'
83
        ));
84
85
        $this->assertEquals('Qux', $form->Fields()->fieldByName('Borris')->Title());
86
    }
87
88
    public function testConfigurableName()
89
    {