Code Duplication    Length = 13-13 lines in 2 locations

tests/Renderer/CKEditorRendererTest.php 2 locations

@@ 221-233 (lines=13) @@
218
     *
219
     * @dataProvider fileAssetProvider
220
     */
221
    public function testRenderWidgetWithStringContentsCss($path, $asset, $url)
222
    {
223
        $this->packages
224
            ->expects($this->once())
225
            ->method('getUrl')
226
            ->with($this->equalTo($path))
227
            ->will($this->returnValue($asset));
228
229
        $this->assertSame(
230
            'CKEDITOR.replace("foo", {"contentsCss":["'.$url.'"]});',
231
            $this->renderer->renderWidget('foo', ['contentsCss' => $path])
232
        );
233
    }
234
235
    /**
236
     * @param string[] $paths
@@ 449-461 (lines=13) @@
446
     *
447
     * @dataProvider directoryAssetProvider
448
     */
449
    public function testRenderPlugin($path, $asset, $url)
450
    {
451
        $this->packages
452
            ->expects($this->once())
453
            ->method('getUrl')
454
            ->with($this->equalTo($path))
455
            ->will($this->returnValue($asset));
456
457
        $this->assertSame(
458
            'CKEDITOR.plugins.addExternal("foo", "'.$url.'", "bat");',
459
            $this->renderer->renderPlugin('foo', ['path' => $path, 'filename' => 'bat'])
460
        );
461
    }
462
463
    public function testRenderStylesSet()
464
    {