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

@@ 697-705 (lines=9) @@
694
     *
695
     * @return void
696
     */
697
    public function testGetAppSchemaInformation()
698
    {
699
        $client = static::createRestClient();
700
        $client->request('OPTIONS', '/core/app/hello');
701
702
        $response = $client->getResponse();
703
704
        $this->assertCorsHeaders('GET, POST, PUT, PATCH, DELETE, OPTIONS', $response);
705
    }
706
707
    /**
708
     * requests on OPTIONS and HEAD shall not lead graviton to get any data from mongodb.