Code Duplication    Length = 12-13 lines in 5 locations

tests/Integration/API/StorefrontTest.php 5 locations

@@ 14-25 (lines=12) @@
11
    const LANGUAGE = 'en';
12
    const CURRENCY = 'USD';
13
14
    public function testGetStorefrontVirtualCurrency()
15
    {
16
        $response = $this->xsollaClient->GetStorefrontVirtualCurrency(
17
            array(
18
                'project_id' => $this->projectId,
19
                'user_id' => self::USER_ID,
20
                'language' => self::LANGUAGE,
21
                'currency' => self::CURRENCY,
22
            )
23
        );
24
        static::assertInternalType('array', $response);
25
    }
26
27
    public function testGetStorefrontVirtualGroups()
28
    {
@@ 27-38 (lines=12) @@
24
        static::assertInternalType('array', $response);
25
    }
26
27
    public function testGetStorefrontVirtualGroups()
28
    {
29
        $response = $this->xsollaClient->GetStorefrontVirtualGroups(
30
            array(
31
                'project_id' => $this->projectId,
32
                'user_id' => self::USER_ID,
33
                'language' => self::LANGUAGE,
34
                'currency' => self::CURRENCY,
35
            )
36
        );
37
        static::assertInternalType('array', $response);
38
    }
39
40
    public function testGetStorefrontVirtualItems()
41
    {
@@ 40-52 (lines=13) @@
37
        static::assertInternalType('array', $response);
38
    }
39
40
    public function testGetStorefrontVirtualItems()
41
    {
42
        $response = $this->xsollaClient->GetStorefrontVirtualItems(
43
            array(
44
                'project_id' => $this->projectId,
45
                'user_id' => self::USER_ID,
46
                'language' => self::LANGUAGE,
47
                'currency' => self::CURRENCY,
48
                'group_id' => 7,
49
            )
50
        );
51
        static::assertInternalType('array', $response);
52
    }
53
54
    public function testGetStorefrontSubscriptions()
55
    {
@@ 54-65 (lines=12) @@
51
        static::assertInternalType('array', $response);
52
    }
53
54
    public function testGetStorefrontSubscriptions()
55
    {
56
        $response = $this->xsollaClient->GetStorefrontSubscriptions(
57
            array(
58
                'project_id' => $this->projectId,
59
                'user_id' => self::USER_ID,
60
                'language' => self::LANGUAGE,
61
                'currency' => self::CURRENCY,
62
            )
63
        );
64
        static::assertInternalType('array', $response);
65
    }
66
67
    public function testGetStorefrontBonus()
68
    {
@@ 67-78 (lines=12) @@
64
        static::assertInternalType('array', $response);
65
    }
66
67
    public function testGetStorefrontBonus()
68
    {
69
        $response = $this->xsollaClient->GetStorefrontBonus(
70
            array(
71
                'project_id' => $this->projectId,
72
                'user_id' => self::USER_ID,
73
                'language' => self::LANGUAGE,
74
                'currency' => self::CURRENCY,
75
            )
76
        );
77
        static::assertInternalType('array', $response);
78
    }
79
}
80