Code Duplication    Length = 16-17 lines in 2 locations

Tests/Api/AgentProfileApiClientTest.php 1 location

@@ 84-100 (lines=17) @@
81
        $this->client->createOrReplaceDocument($document);
82
    }
83
84
    public function testDeleteDocument()
85
    {
86
        $profile = $this->createAgentProfile();
87
88
        $this->validateDeleteDocumentCall(
89
            'agents/profile',
90
            array(
91
                'agent' => 'agent-as-json',
92
                'profileId' => 'profile-id',
93
            ),
94
            array(array('data' => $profile->getAgent(), 'result' => 'agent-as-json'))
95
        );
96
97
        $this->client->deleteDocument(
98
            $profile
99
        );
100
    }
101
102
    public function testGetDocument()
103
    {

Tests/Api/StateApiClientTest.php 1 location

@@ 85-100 (lines=16) @@
82
        $this->client->createOrReplaceDocument($document);
83
    }
84
85
    public function testDeleteDocument()
86
    {
87
        $state = $this->createState();
88
89
        $this->validateDeleteDocumentCall(
90
            'activities/state',
91
            array(
92
                'activityId' => 'activity-id',
93
                'agent' => 'agent-as-json',
94
                'stateId' => 'state-id',
95
            ),
96
            array(array('data' => $state->getActor(), 'result' => 'agent-as-json'))
97
        );
98
99
        $this->client->deleteDocument($state);
100
    }
101
102
    public function testGetDocument()
103
    {