| @@ 261-274 (lines=14) @@ | ||
| 258 | * |
|
| 259 | * @return void |
|
| 260 | */ |
|
| 261 | public function testFindAllEmptyCollection() |
|
| 262 | { |
|
| 263 | // reset fixtures since we already have some from setUp |
|
| 264 | $this->loadFixtures(array(), null, 'doctrine_mongodb'); |
|
| 265 | $client = static::createRestClient(); |
|
| 266 | $client->request('GET', '/core/app/'); |
|
| 267 | ||
| 268 | $response = $client->getResponse(); |
|
| 269 | $results = $client->getResults(); |
|
| 270 | ||
| 271 | $this->assertResponseContentType(self::COLLECTION_TYPE, $response); |
|
| 272 | ||
| 273 | $this->assertEquals(array(), $results); |
|
| 274 | } |
|
| 275 | ||
| 276 | /** |
|
| 277 | * test if we can get an app by id |
|
| @@ 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) |
|
| @@ 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 |
|