Code Duplication    Length = 12-14 lines in 2 locations

src/Graviton/CoreBundle/Tests/Controller/AppControllerTest.php 2 locations

@@ 791-802 (lines=12) @@
788
     *
789
     * @return void
790
     */
791
    public function testNoRecordsAreGeneratedOnPreRequests()
792
    {
793
        $client = static::createRestClient();
794
        $client->request('OPTIONS', '/core/app/?limit(1)');
795
        $response = $client->getResponse();
796
        $this->assertArrayNotHasKey('x-total-count', $response->headers->all());
797
798
        $client = static::createRestClient();
799
        $client->request('HEAD', '/core/app/?limit(1)');
800
        $response = $client->getResponse();
801
        $this->assertArrayNotHasKey('x-total-count', $response->headers->all());
802
    }
803
804
    /**
805
     * test getting schema information from canonical url
@@ 933-946 (lines=14) @@
930
     *
931
     * @return void
932
     */
933
    public function testRqlSyntaxError()
934
    {
935
        $client = static::createRestClient();
936
937
        $client->request('GET', '/core/app/?eq(name)');
938
939
        $response = $client->getResponse();
940
        $results = $client->getResults();
941
942
        $this->assertEquals(400, $response->getStatusCode());
943
944
        $this->assertContains('syntax error in rql: ', $results->message);
945
        $this->assertContains('Unexpected token', $results->message);
946
    }
947
948
    /**
949
     * check if response looks like schema