Code Duplication    Length = 16-16 lines in 2 locations

Tests/DependencyInjection/Compiler/ConfigurePrefixCandidatesCompilerPassTest.php 1 location

@@ 114-129 (lines=16) @@
111
    /**
112
     * @expectedException Symfony\Component\DependencyInjection\Exception\RuntimeException
113
     */
114
    public function testNoBundle()
115
    {
116
        $this->container->expects($this->any())
117
            ->method('hasParameter')
118
            ->will($this->returnValueMap([
119
                ['swp_multi_tenancy.backend_type_phpcr', true],
120
                ['cmf_routing.backend_type_phpcr', true],
121
            ]));
122
123
        $this->container->expects($this->once())
124
            ->method('getParameter')
125
            ->with('kernel.bundles')
126
            ->will($this->returnValue(array()));
127
128
        $this->pass->process($this->container);
129
    }
130
}
131

Tests/DependencyInjection/Compiler/TenantAwareRouterCompilerPassTest.php 1 location

@@ 113-128 (lines=16) @@
110
    /**
111
     * @expectedException Symfony\Component\DependencyInjection\Exception\RuntimeException
112
     */
113
    public function testNoBundle()
114
    {
115
        $this->container->expects($this->any())
116
            ->method('hasParameter')
117
            ->will($this->returnValueMap([
118
                ['swp_multi_tenancy.backend_type_phpcr', true],
119
                ['cmf_routing.backend_type_phpcr', true],
120
            ]));
121
122
        $this->container->expects($this->once())
123
            ->method('getParameter')
124
            ->with('kernel.bundles')
125
            ->will($this->returnValue(array()));
126
127
        $this->pass->process($this->container);
128
    }
129
}
130