| @@ 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 |
|
| @@ 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) |
|
| @@ 363-376 (lines=14) @@ | ||
| 360 | * |
|
| 361 | * @return void |
|
| 362 | */ |
|
| 363 | public function testFindAllEmptyCollection() |
|
| 364 | { |
|
| 365 | // reset fixtures since we already have some from setUp |
|
| 366 | $this->loadFixtures(array(), null, 'doctrine_mongodb'); |
|
| 367 | $client = static::createRestClient(); |
|
| 368 | $client->request('GET', '/core/app/'); |
|
| 369 | ||
| 370 | $response = $client->getResponse(); |
|
| 371 | $results = $client->getResults(); |
|
| 372 | ||
| 373 | $this->assertResponseContentType(self::COLLECTION_TYPE, $response); |
|
| 374 | ||
| 375 | $this->assertEquals(array(), $results); |
|
| 376 | } |
|
| 377 | ||
| 378 | /** |
|
| 379 | * test if we can get an app by id |
|