Code Duplication    Length = 9-10 lines in 2 locations

tests/Integration/API/VirtualItemsTest.php 2 locations

@@ 64-73 (lines=10) @@
61
        static::assertInternalType('array', $response);
62
    }
63
64
    public function testCreateVirtualItemsGroup()
65
    {
66
        $response = static::$xsollaClient->CreateVirtualItemsGroup([
67
            'project_id' => static::$projectId,
68
            'request' => $this->virtualItemsGroup,
69
        ]);
70
        static::assertArrayHasKey('group_id', $response);
71
        static::$virtualItemsGroupId = $response['group_id'];
72
        static::$virtualItem['groups'] = [static::$virtualItemsGroupId];
73
    }
74
75
    /**
76
     * @depends testCreateVirtualItemsGroup
@@ 103-111 (lines=9) @@
100
    /**
101
     * @depends testUpdateVirtualItemsGroup
102
     */
103
    public function testCreateVirtualItem()
104
    {
105
        $response = static::$xsollaClient->CreateVirtualItem([
106
            'project_id' => static::$projectId,
107
            'request' => static::$virtualItem,
108
        ]);
109
        static::assertArrayHasKey('item_id', $response);
110
        static::$virtualItemId = $response['item_id'];
111
    }
112
113
    /**
114
     * @depends testCreateVirtualItem