Code Duplication    Length = 9-11 lines in 2 locations

src/Graviton/CoreBundle/Tests/Services/ReadOnlyServiceTest.php 1 location

@@ 41-51 (lines=11) @@
38
     *
39
     * @return void
40
     */
41
    public function testAllowedMethod()
42
    {
43
        $client = static::createRestClient();
44
        $client->request('GET', "/testcase/readonly/");
45
46
        $response = $client->getResponse();
47
        $result = $client->getResults();
48
49
        $this->assertEquals(Response::HTTP_OK, $response->getStatusCode());
50
        $this->assertCount(2, $result);
51
    }
52
53
    /**
54
     * test not allowed methods of a readOnly service

src/Graviton/SchemaBundle/Tests/Controller/RecordOriginConstraintTest.php 1 location

@@ 46-54 (lines=9) @@
43
     *
44
     * @return void
45
     */
46
    public function testRecordOriginHandlingOnCreate($entity, $expectedStatus, $expectedResponse)
47
    {
48
        $client = static::createRestClient();
49
        $client->post('/person/customer/', $entity);
50
51
        $response = $client->getResponse();
52
        $this->assertEquals($expectedStatus, $response->getStatusCode());
53
        $this->assertEquals($expectedResponse, $client->getResults());
54
    }
55
56
    /**
57
     * Test the validation of the RecordOriginConstraint