Code Duplication    Length = 9-9 lines in 2 locations

src/Graviton/I18nBundle/Tests/Controller/TranslatableControllerTest.php 1 location

@@ 24-32 (lines=9) @@
21
     *
22
     * @return void
23
     */
24
    public function testOptionsHasCors()
25
    {
26
        $client = static::createRestClient();
27
28
        $client->request('OPTIONS', '/i18n/translatable/i18n-de-German');
29
        $this->assertCorsHeaders('GET, POST, PUT, PATCH, DELETE, OPTIONS', $client->getResponse());
30
31
        $this->assertEmpty($client->getResults());
32
    }
33
34
    /**
35
     * validate linking of objects

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

@@ 770-778 (lines=9) @@
767
     *
768
     * @return void
769
     */
770
    public function testGetAppSchemaInformation()
771
    {
772
        $client = static::createRestClient();
773
        $client->request('OPTIONS', '/core/app/hello');
774
775
        $response = $client->getResponse();
776
777
        $this->assertCorsHeaders('GET, POST, PUT, PATCH, DELETE, OPTIONS', $response);
778
    }
779
780
    /**
781
     * requests on OPTIONS and HEAD shall not lead graviton to get any data from mongodb.