Code Duplication    Length = 8-9 lines in 2 locations

tests/CaptainHook/Config/HookTest.php 2 locations

@@ 17-24 (lines=8) @@
14
    /**
15
     * Tests Hook::__construct
16
     */
17
    public function testDisabledByDefault()
18
    {
19
        $hook   = new Hook();
20
        $config = $hook->getJsonData();
21
22
        $this->assertEquals(false, $hook->isEnabled());
23
        $this->assertEquals(false, $config['enabled']);
24
    }
25
26
    /**
27
     * Tests Hook::setEnabled
@@ 29-37 (lines=9) @@
26
    /**
27
     * Tests Hook::setEnabled
28
     */
29
    public function testSetEnabled()
30
    {
31
        $hook   = new Hook();
32
        $hook->setEnabled(true);
33
        $config = $hook->getJsonData();
34
35
        $this->assertEquals(true, $hook->isEnabled());
36
        $this->assertEquals(true, $config['enabled']);
37
    }
38
39
    /**
40
     * Tests Hook::__construct