|
@@ 24-29 (lines=6) @@
|
| 21 |
|
$this->publicController = new PublicController("bookmarks", $this->request, $this->db, $this->userManager); |
| 22 |
|
} |
| 23 |
|
|
| 24 |
|
function testPublicQueryNoUser() { |
| 25 |
|
$output = $this->publicController->returnAsJson(null, "apassword", null); |
| 26 |
|
$data = $output->getData(); |
| 27 |
|
$status = $data['status']; |
| 28 |
|
$this->assertEquals($status, 'error'); |
| 29 |
|
} |
| 30 |
|
|
| 31 |
|
function testPublicQueryWrongUser() { |
| 32 |
|
$output = $this->publicController->returnAsJson("cqc43dr4rx3x4xatr4", "apassword", null); |
|
@@ 31-36 (lines=6) @@
|
| 28 |
|
$this->assertEquals($status, 'error'); |
| 29 |
|
} |
| 30 |
|
|
| 31 |
|
function testPublicQueryWrongUser() { |
| 32 |
|
$output = $this->publicController->returnAsJson("cqc43dr4rx3x4xatr4", "apassword", null); |
| 33 |
|
$data = $output->getData(); |
| 34 |
|
$status = $data['status']; |
| 35 |
|
$this->assertEquals($status, 'error'); |
| 36 |
|
} |
| 37 |
|
|
| 38 |
|
function testPublicQuery() { |
| 39 |
|
|