Code Duplication    Length = 12-13 lines in 2 locations

src/Graviton/SecurityBundle/Tests/Authentication/Strategies/CookieFieldStrategyTest.php 1 location

@@ 28-39 (lines=12) @@
25
     * UnitTest Starts this on reach test
26
     * @return void
27
     */
28
    public function setUp()
29
    {
30
        parent::setUp();
31
32
        /** @var \Symfony\Bundle\FrameworkBundle\Client client */
33
        $this->client = static::createClient();
34
        $this->propertyKey = $this->client->getKernel()
35
            ->getContainer()
36
            ->getParameter('graviton.security.authentication.strategy.cookie.key');
37
        $this->strategy = new CookieFieldStrategy(
38
            $this->propertyKey
39
        );
40
    }
41
42
    /**

src/Graviton/SecurityBundle/Tests/Authentication/Strategies/SameSubnetStrategyTest.php 1 location

@@ 28-40 (lines=13) @@
25
     * UnitTest Starts this on reach test
26
     * @return void
27
     */
28
    public function setUp()
29
    {
30
        parent::setUp();
31
32
        /** @var \Symfony\Bundle\FrameworkBundle\Client client */
33
        $this->client = static::createClient();
34
        $this->propertyKey = $this->client->getKernel()
35
            ->getContainer()
36
            ->getParameter('graviton.security.authentication.strategy.subnet.key');
37
        $this->strategy = new SameSubnetStrategy(
38
            $this->propertyKey
39
        );
40
    }
41
42
    /**
43
     * @covers \Graviton\SecurityBundle\Authentication\Strategies\SameSubnetStrategy::apply