Code Duplication    Length = 15-17 lines in 2 locations

tests/DependencyInjection/AbstractFOSCKEditorExtensionTest.php 2 locations

@@ 233-249 (lines=17) @@
230
        );
231
    }
232
233
    public function testSingleConfiguration()
234
    {
235
        $this->loadConfiguration($this->container, 'single_configuration');
236
        $this->container->compile();
237
238
        $configManager = $this->container->get('fosck_editor.config_manager');
239
240
        $expected = [
241
            'default' => [
242
                'toolbar' => 'default',
243
                'uiColor' => '#000000',
244
            ],
245
        ];
246
247
        $this->assertSame('default', $configManager->getDefaultConfig());
248
        $this->assertSame($expected, $configManager->getConfigs());
249
    }
250
251
    public function testMultipleConfiguration()
252
    {
@@ 273-287 (lines=15) @@
270
        $this->assertSame($expected, $configManager->getConfigs());
271
    }
272
273
    public function testDefaultConfiguration()
274
    {
275
        $this->loadConfiguration($this->container, 'default_configuration');
276
        $this->container->compile();
277
278
        $configManager = $this->container->get('fosck_editor.config_manager');
279
280
        $expected = [
281
            'default' => ['uiColor' => '#000000'],
282
            'custom' => ['uiColor' => '#ffffff'],
283
        ];
284
285
        $this->assertSame('default', $configManager->getDefaultConfig());
286
        $this->assertSame($expected, $configManager->getConfigs());
287
    }
288
289
    public function testPlugins()
290
    {