Code Duplication    Length = 10-10 lines in 2 locations

mysite/tests/Tasks/SetSupportedAddonsTaskTest.php 2 locations

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