Code Duplication    Length = 9-9 lines in 2 locations

Tests/DependencyInjection/LoevgaardPakkelabelsExtensionTest.php 2 locations

@@ 13-21 (lines=9) @@
10
11
class LoevgaardPakkelabelsExtensionTest extends TestCase
12
{
13
    public function testThrowsExceptionUnlessApiUsernameSet()
14
    {
15
        $this->expectException(InvalidConfigurationException::class);
16
17
        $loader = new LoevgaardPakkelabelsExtension();
18
        $config = $this->getEmptyConfig();
19
        unset($config['api_username']);
20
        $loader->load([$config], new ContainerBuilder());
21
    }
22
23
    public function testThrowsExceptionUnlessApiPasswordSet()
24
    {
@@ 23-31 (lines=9) @@
20
        $loader->load([$config], new ContainerBuilder());
21
    }
22
23
    public function testThrowsExceptionUnlessApiPasswordSet()
24
    {
25
        $this->expectException(InvalidConfigurationException::class);
26
27
        $loader = new LoevgaardPakkelabelsExtension();
28
        $config = $this->getEmptyConfig();
29
        unset($config['api_password']);
30
        $loader->load([$config], new ContainerBuilder());
31
    }
32
33
    public function testGettersSetters()
34
    {