Skip to content

Commit eeb2590

Browse files
committed
adjust tests
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
1 parent 4f60f91 commit eeb2590

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

tests/php/controller/OldPageControllerTest.php

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1521,12 +1521,7 @@ public function testPage() {
15211521
// CHECK PUBLIC VIEW TRACK ON PRIVATE SESSION
15221522
$sessions = [[$sharetoken2, null, null]];
15231523
$resp = $this->pageController->publicViewTrack($sessions);
1524-
$data = $resp->getData();
1525-
$respSession = $data['sessions'];
1526-
$respNames = $data['names'];
1527-
$respColors = $data['colors'];
1528-
1529-
$this->assertEquals(count($respSession), 0);
1524+
$this->assertEquals(Http::STATUS_NOT_FOUND, $resp->getStatus());
15301525

15311526
// API
15321527
$resp = $this->pageController->APIgetLastPositionsPublic($sharetoken2);
@@ -2108,7 +2103,7 @@ public function testPage() {
21082103

21092104
// PUBLIC WEB LOG with non existent session
21102105
$resp = $this->pageController->publicWebLog('', '');
2111-
$this->assertEquals(is_string($resp), true);
2106+
$this->assertEquals(Http::STATUS_FORBIDDEN, $resp->getStatus());
21122107

21132108
$resp = $this->utilsController->saveOptionValue([
21142109
'applyfilters' => 'false',

0 commit comments

Comments
 (0)