Code Duplication    Length = 11-11 lines in 2 locations

src/Graviton/CoreBundle/Tests/Controller/TranslatableArrayControllerTest.php 1 location

@@ 66-76 (lines=11) @@
63
     *
64
     * @return void
65
     */
66
    public function testCollectionSchema()
67
    {
68
        $client = static::createRestClient();
69
        $this->getRequest($client, '/schema/testcase/translatable-array/collection');
70
        $this->assertEquals(Response::HTTP_OK, $client->getResponse()->getStatusCode());
71
72
        $schema = $client->getResults();
73
        $this->assertEquals('array', $schema->type);
74
        $this->assertEquals('object', $schema->items->type);
75
        $this->assertItemSchema($schema->items);
76
    }
77
78
    /**
79
     * Test GET one method

src/Graviton/CoreBundle/Tests/Controller/PrimitiveArrayControllerTest.php 1 location

@@ 76-86 (lines=11) @@
73
     *
74
     * @return void
75
     */
76
    public function testCollectionSchema()
77
    {
78
        $client = static::createRestClient();
79
        $client->request('GET', '/schema/testcase/primitivearray/collection');
80
        $this->assertEquals(Response::HTTP_OK, $client->getResponse()->getStatusCode());
81
82
        $schema = $client->getResults();
83
        $this->assertEquals('array', $schema->type);
84
        $this->assertEquals('object', $schema->items->type);
85
        $this->assertItemSchema($schema->items);
86
    }
87
88
    /**
89
     * Test GET one method