Code Duplication    Length = 10-10 lines in 2 locations

mysite/tests/Tasks/SetSupportedAddonsTaskTest.php 2 locations

@@ 74-83 (lines=10) @@
71
        $this->assertAddonsAreNotSupported('foo/supported-bar-a');
72
    }
73
74
    protected function assertAddonsAreSupported($addons)
75
    {
76
        $addons = (array) $addons;
77
78
        $supportedAddons = Addon::get()->filter('Supported', true)->column('Name');
79
80
        foreach ($addons as $addon) {
81
            $this->assertContains($addon, $supportedAddons, $addon . ' is not supported');
82
        }
83
    }
84
85
    protected function assertAddonsAreNotSupported($addons)
86
    {
@@ 85-94 (lines=10) @@
82
        }
83
    }
84
85
    protected function assertAddonsAreNotSupported($addons)
86
    {
87
        $addons = (array) $addons;
88
89
        $unsupportedAddons = Addon::get()->filter('Supported', false)->column('Name');
90
91
        foreach ($addons as $addon) {
92
            $this->assertContains($addon, $unsupportedAddons, $addon . ' is supported');
93
        }
94
    }
95
96
    protected function runTask($addons = null, array $args = [])
97
    {