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

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