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

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