Code Duplication    Length = 10-10 lines in 2 locations

src/OroCRM/Bundle/ContactBundle/Tests/Functional/API/RestContactEmailApiTest.php 1 location

@@ 53-62 (lines=10) @@
50
        $this->getJsonResponseContent($this->client->getResponse(), Codes::HTTP_BAD_REQUEST);
51
    }
52
53
    public function testEmptyContactId()
54
    {
55
        $content = json_encode([
56
            'email' =>'[email protected]',
57
            'primary' => true
58
        ]);
59
60
        $this->client->request('POST', $this->getUrl('oro_api_post_contact_email'), [], [], [], $content);
61
        $this->getJsonResponseContent($this->client->getResponse(), Codes::HTTP_BAD_REQUEST);
62
    }
63
64
    public function testEmptyEmail()
65
    {

src/OroCRM/Bundle/ContactBundle/Tests/Functional/API/RestContactPhoneApiTest.php 1 location

@@ 55-64 (lines=10) @@
52
        $this->getJsonResponseContent($this->client->getResponse(), Codes::HTTP_BAD_REQUEST);
53
    }
54
55
    public function testEmptyContactId()
56
    {
57
        $content = json_encode([
58
            'phone' =>'[email protected]',
59
            'primary' => true
60
        ]);
61
62
        $this->client->request('POST', $this->getUrl('oro_api_post_contact_phone'), [], [], [], $content);
63
        $this->getJsonResponseContent($this->client->getResponse(), Codes::HTTP_BAD_REQUEST);
64
    }
65
66
    public function testEmptyPhone()
67
    {