Code Duplication    Length = 10-10 lines in 2 locations

tests/Integration/API/GameDeliveryTest.php 1 location

@@ 49-58 (lines=10) @@
46
        static::assertArrayHasKey('drm', $response);
47
    }
48
49
    public function testCreateGameDeliveryEntity()
50
    {
51
        $response = $this->xsollaClient->CreateGameDeliveryEntity(array(
52
            'project_id' => $this->projectId,
53
            'request' => $this->gameDeliveryEntityTemplate,
54
        ));
55
        static::assertArrayHasKey('id', $response);
56
        static::$gameDeliveryEntityId = $response['id'];
57
        static::$gameDeliveryEntitySku = $this->gameDeliveryEntityTemplate['sku'];
58
    }
59
60
    /**
61
     * @depends testCreateGameDeliveryEntity

tests/Integration/API/VirtualItemsTest.php 1 location

@@ 80-89 (lines=10) @@
77
        }
78
    }
79
80
    public function testCreateVirtualItemsGroup()
81
    {
82
        $response = $this->xsollaClient->CreateVirtualItemsGroup(array(
83
            'project_id' => $this->projectId,
84
            'request' => $this->virtualItemsGroup,
85
        ));
86
        static::assertArrayHasKey('group_id', $response);
87
        static::$virtualItemsGroupId = $response['group_id'];
88
        static::$virtualItem['groups'] = array(static::$virtualItemsGroupId);
89
    }
90
91
    /**
92
     * @depends testCreateVirtualItemsGroup