Code Duplication    Length = 18-18 lines in 2 locations

Tests/Api/ActivityProfileApiClientTest.php 2 locations

@@ 40-57 (lines=18) @@
37
        );
38
    }
39
40
    public function testCreateOrUpdateDocument()
41
    {
42
        $document = DocumentFixtures::getActivityProfileDocument();
43
44
        $this->validateStoreApiCall(
45
            'post',
46
            'activities/profile',
47
            array(
48
                'activityId' => 'activity-id',
49
                'profileId' => 'profile-id',
50
            ),
51
            204,
52
            '',
53
            $document->getData()
54
        );
55
56
        $this->client->createOrUpdateDocument($document);
57
    }
58
59
    public function testCreateOrReplaceDocument()
60
    {
@@ 59-76 (lines=18) @@
56
        $this->client->createOrUpdateDocument($document);
57
    }
58
59
    public function testCreateOrReplaceDocument()
60
    {
61
        $document = DocumentFixtures::getActivityProfileDocument();
62
63
        $this->validateStoreApiCall(
64
            'put',
65
            'activities/profile',
66
            array(
67
                'activityId' => 'activity-id',
68
                'profileId' => 'profile-id',
69
            ),
70
            204,
71
            '',
72
            $document->getData()
73
        );
74
75
        $this->client->createOrReplaceDocument($document);
76
    }
77
78
    public function testDeleteDocument()
79
    {