Code Duplication    Length = 12-12 lines in 2 locations

tests/SettingsTest.php 2 locations

@@ 45-56 (lines=12) @@
42
        $this->assertContains("value=\"\"", $output);
43
    }
44
45
    public function test_base_url_setting_with_value()
46
    {
47
        update_option('wpmautic_options', array(
48
            'base_url' => 'http://example.com'
49
        ));
50
51
        wpmautic_base_url();
52
        $output = $this->getActualOutput();
53
        $this->assertContains("wpmautic_base_url", $output);
54
        $this->assertContains("wpmautic_options[base_url]", $output);
55
        $this->assertContains("value=\"http://example.com\"", $output);
56
    }
57
58
    public function test_script_location_setting()
59
    {
@@ 102-113 (lines=12) @@
99
        $this->assertNotContains("checked", $output);
100
    }
101
102
    public function test_fallback_activated_setting_with_checked()
103
    {
104
        update_option('wpmautic_options', array(
105
            'fallback_activated' => true
106
        ));
107
108
        wpmautic_fallback_activated();
109
        $output = $this->getActualOutput();
110
        $this->assertContains("wpmautic_fallback_activated", $output);
111
        $this->assertContains("wpmautic_options[fallback_activated]", $output);
112
        $this->assertContains("checked", $output);
113
    }
114
}
115