|
@@ 172-178 (lines=7) @@
|
| 169 |
|
* |
| 170 |
|
* @dataProvider category_one_page_data |
| 171 |
|
*/ |
| 172 |
|
function test_category_one_page($cat_id, $cat_name, $parent_cat_id, $nb_links) |
| 173 |
|
{ |
| 174 |
|
$controller = $this->get_controller(); |
| 175 |
|
$response = $controller->view_route($cat_id); |
| 176 |
|
$this->assertInstanceOf('\Symfony\Component\HttpFoundation\Response', $response); |
| 177 |
|
$this->assertEquals('200', $response->getStatusCode()); |
| 178 |
|
} |
| 179 |
|
|
| 180 |
|
/** |
| 181 |
|
* Test data for the test_category_no_links() function |
|
@@ 229-235 (lines=7) @@
|
| 226 |
|
* |
| 227 |
|
* @dataProvider category_with_pages_data |
| 228 |
|
*/ |
| 229 |
|
public function test_category_with_pages($cat_id, $cat_name, $parent_cat_id, $parent_cat_name, $nb_links, $page = 1, $sort_days = 0) |
| 230 |
|
{ |
| 231 |
|
$controller = $this->get_controller(); |
| 232 |
|
$response = $controller->view_route($cat_id, $page, $sort_days); |
| 233 |
|
$this->assertInstanceOf('\Symfony\Component\HttpFoundation\Response', $response); |
| 234 |
|
$this->assertEquals('200', $response->getStatusCode()); |
| 235 |
|
} |
| 236 |
|
|
| 237 |
|
protected function tearDown() |
| 238 |
|
{ |