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

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