|
@@ 88-93 (lines=6) @@
|
| 85 |
|
/** |
| 86 |
|
* @dataProvider publish_data |
| 87 |
|
*/ |
| 88 |
|
public function test_publish($status_code, $page_content) { |
| 89 |
|
$response = $this->controller->publish(); |
| 90 |
|
$this->assertInstanceOf('\Symfony\Component\HttpFoundation\Response', $response); |
| 91 |
|
$this->assertEquals($status_code, $response->getStatusCode()); |
| 92 |
|
$this->assertEquals($page_content, $response->getContent()); |
| 93 |
|
} |
| 94 |
|
|
| 95 |
|
public function load_data() { |
| 96 |
|
return array( |
|
@@ 107-112 (lines=6) @@
|
| 104 |
|
/** |
| 105 |
|
* @dataProvider load_data |
| 106 |
|
*/ |
| 107 |
|
public function test_load($status_code, $page_content) { |
| 108 |
|
$response = $this->controller->load(); |
| 109 |
|
$this->assertInstanceOf('\Symfony\Component\HttpFoundation\Response', $response); |
| 110 |
|
$this->assertEquals($status_code, $response->getStatusCode()); |
| 111 |
|
$this->assertEquals($page_content, $response->getContent()); |
| 112 |
|
} |
| 113 |
|
} |