| @@ 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 |
|
| @@ 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 |
|
| @@ 124-137 (lines=14) @@ | ||
| 121 | * |
|
| 122 | * @return void |
|
| 123 | */ |
|
| 124 | public function testFindAllEmptyCollection() |
|
| 125 | { |
|
| 126 | // reset fixtures since we already have some from setUp |
|
| 127 | $this->loadFixtures(array(), null, 'doctrine_mongodb'); |
|
| 128 | $client = static::createRestClient(); |
|
| 129 | $client->request('GET', '/core/module/'); |
|
| 130 | ||
| 131 | $response = $client->getResponse(); |
|
| 132 | $results = $client->getResults(); |
|
| 133 | ||
| 134 | $this->assertResponseContentType(self::COLLECTION_TYPE, $response); |
|
| 135 | ||
| 136 | $this->assertEquals(array(), $results); |
|
| 137 | } |
|
| 138 | ||
| 139 | /** |
|
| 140 | * test if we can get an module first by key and then its id (id is dynamic) |
|