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

@@ 733-741 (lines=9) @@
730
     *
731
     * @return void
732
     */
733
    public function testGetAppSchemaInformation()
734
    {
735
        $client = static::createRestClient();
736
        $client->request('OPTIONS', '/core/app/hello');
737
738
        $response = $client->getResponse();
739
740
        $this->assertCorsHeaders('GET, POST, PUT, PATCH, DELETE, OPTIONS', $response);
741
    }
742
743
    /**
744
     * requests on OPTIONS and HEAD shall not lead graviton to get any data from mongodb.