Code Duplication    Length = 14-14 lines in 3 locations

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

@@ 83-96 (lines=14) @@
80
     *
81
     * @return void
82
     */
83
    public function testFindAllEmptyCollection()
84
    {
85
        // reset fixtures since we already have some from setUp
86
        $this->loadFixtures(array(), null, 'doctrine_mongodb');
87
        $client = static::createRestClient();
88
        $client->request('GET', '/core/module/');
89
90
        $response = $client->getResponse();
91
        $results = $client->getResults();
92
93
        $this->assertResponseContentType(self::COLLECTION_TYPE, $response);
94
95
        $this->assertEquals(array(), $results);
96
    }
97
98
    /**
99
     * test if we can get an module first by key and then its id (id is dynamic)

src/Graviton/FileBundle/Tests/Controller/FileControllerTest.php 1 location

@@ 52-65 (lines=14) @@
49
     *
50
     * @return void
51
     */
52
    public function testFindAllEmptyCollection()
53
    {
54
        // reset fixtures since we already have some from setUp
55
        $this->loadFixtures(array(), null, 'doctrine_mongodb');
56
        $client = static::createRestClient();
57
        $client->request('GET', '/file/');
58
59
        $response = $client->getResponse();
60
        $results = $client->getResults();
61
62
        $this->assertResponseContentType(self::COLLECTION_TYPE, $response);
63
64
        $this->assertEquals(array(), $results);
65
    }
66
67
    /**
68
     * validate that we can post a new file

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

@@ 291-304 (lines=14) @@
288
     *
289
     * @return void
290
     */
291
    public function testFindAllEmptyCollection()
292
    {
293
        // reset fixtures since we already have some from setUp
294
        $this->loadFixtures(array(), null, 'doctrine_mongodb');
295
        $client = static::createRestClient();
296
        $client->request('GET', '/core/app/');
297
298
        $response = $client->getResponse();
299
        $results = $client->getResults();
300
301
        $this->assertResponseContentType(self::COLLECTION_TYPE, $response);
302
303
        $this->assertEquals(array(), $results);
304
    }
305
306
    /**
307
     * test if we can get an app by id