Code Duplication    Length = 9-9 lines in 2 locations

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

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

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

@@ 42-50 (lines=9) @@
39
     *
40
     * @return void
41
     */
42
    public function testOptionsHasCors()
43
    {
44
        $client = static::createRestClient();
45
46
        $client->request('OPTIONS', '/i18n/translatable/i18n-de-German');
47
        $this->assertCorsHeaders('GET, POST, PUT, PATCH, DELETE, OPTIONS', $client->getResponse());
48
49
        $this->assertEmpty($client->getResults());
50
    }
51
52
    /**
53
     * validate linking of objects