Code Duplication    Length = 10-11 lines in 2 locations

tests/Collector/DatabaseCollectorTest.php 1 location

@@ 75-85 (lines=11) @@
72
        $this->assertSame($expected, $this->collector->getWidgets());
73
    }
74
75
    public function testGetAssets()
76
    {
77
        $expected = array(
78
            'base_path' => '/debugbar/javascript',
79
            'base_url' => 'debugbar/javascript',
80
            'css' => 'sqlqueries/widget.css',
81
            'js' => 'sqlqueries/widget.js'
82
        );
83
84
        $this->assertSame($expected, $this->collector->getAssets());
85
    }
86
}
87

tests/Collector/SilverStripeCollectorTest.php 1 location

@@ 171-180 (lines=10) @@
168
        $this->assertSame($expected, $result);
169
    }
170
171
    public function testGetAssets()
172
    {
173
        $expected = array(
174
            'base_path' => '/debugbar/javascript',
175
            'base_url' => 'debugbar/javascript',
176
            'css' => array(),
177
            'js' => 'widgets.js',
178
        );
179
        $this->assertSame($expected, $this->collector->getAssets());
180
    }
181
182
    /**
183
     * Test that a message is returned when templates are cached. For retrieval of template info, see