| @@ 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 |
|
| @@ 326-339 (lines=14) @@ | ||
| 323 | * |
|
| 324 | * @return void |
|
| 325 | */ |
|
| 326 | public function testFindAllEmptyCollection() |
|
| 327 | { |
|
| 328 | // reset fixtures since we already have some from setUp |
|
| 329 | $this->loadFixtures(array(), null, 'doctrine_mongodb'); |
|
| 330 | $client = static::createRestClient(); |
|
| 331 | $client->request('GET', '/core/app/'); |
|
| 332 | ||
| 333 | $response = $client->getResponse(); |
|
| 334 | $results = $client->getResults(); |
|
| 335 | ||
| 336 | $this->assertResponseContentType(self::COLLECTION_TYPE, $response); |
|
| 337 | ||
| 338 | $this->assertEquals(array(), $results); |
|
| 339 | } |
|
| 340 | ||
| 341 | /** |
|
| 342 | * test if we can get an app by id |
|
| @@ 178-191 (lines=14) @@ | ||
| 175 | * |
|
| 176 | * @return void |
|
| 177 | */ |
|
| 178 | public function testFindAllEmptyCollection() |
|
| 179 | { |
|
| 180 | // reset fixtures since we already have some from setUp |
|
| 181 | $this->loadFixtures(array(), null, 'doctrine_mongodb'); |
|
| 182 | $client = static::createRestClient(); |
|
| 183 | $client->request('GET', '/core/module/'); |
|
| 184 | ||
| 185 | $response = $client->getResponse(); |
|
| 186 | $results = $client->getResults(); |
|
| 187 | ||
| 188 | $this->assertResponseContentType(self::COLLECTION_TYPE, $response); |
|
| 189 | ||
| 190 | $this->assertEquals(array(), $results); |
|
| 191 | } |
|
| 192 | ||
| 193 | /** |
|
| 194 | * test if we can get an module first by key and then its id (id is dynamic) |
|