Code Duplication    Length = 13-15 lines in 2 locations

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

@@ 361-375 (lines=15) @@
358
     *
359
     * @return void
360
     */
361
    public function testFindAllEmptyCollection()
362
    {
363
        // reset fixtures since we already have some from setUp
364
        $this->loadFixturesLocal([]);
365
        $client = static::createRestClient();
366
        $client->request('GET', '/core/app/');
367
368
        $response = $client->getResponse();
369
        $results = $client->getResults();
370
371
        $this->assertResponseContentType(self::CONTENT_TYPE, $response);
372
        $this->assertResponseSchemaRel(self::SCHEMA_URL_COLLECTION, $response);
373
374
        $this->assertEquals([], $results);
375
    }
376
377
    /**
378
     * test if we can get an app by id

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

@@ 957-969 (lines=13) @@
954
     *
955
     * @return void
956
     */
957
    public function testFindByExtref($field, $url, $count)
958
    {
959
        $url = sprintf(
960
            '/hans/showcase/?%s=%s',
961
            $this->encodeRqlString($field),
962
            $this->encodeRqlString($url)
963
        );
964
965
        $client = static::createRestClient();
966
        $client->request('GET', $url);
967
        $this->assertEquals(Response::HTTP_OK, $client->getResponse()->getStatusCode());
968
        $this->assertCount($count, $client->getResults());
969
    }
970
971
    /**
972
     * @return array