Skip to content

Commit a0ca662

Browse files
committed
Fix tests
1 parent 045725b commit a0ca662

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

tests/functional/announcement_test.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,17 +124,17 @@ public function test_close_announcement_fail()
124124
$this->login();
125125

126126
// Wrong ID
127-
$crawler = self::request('GET', 'app.php/boardannouncements/close/0?hash=' . $this->mock_link_hash('close_boardannouncement') . '&sid=' . $this->sid, [], false);
127+
$crawler = self::request('GET', 'index.php/boardannouncements/close/0?hash=' . $this->mock_link_hash('close_boardannouncement') . '&sid=' . $this->sid, [], false);
128128
self::assert_response_status_code(403);
129129
$this->assertContainsLang('NO_AUTH_OPERATION', $crawler->text());
130130

131131
// Wrong hash
132-
$crawler = self::request('GET', 'app.php/boardannouncements/close/1?hash=wrong&sid=' . $this->sid, [], false);
132+
$crawler = self::request('GET', 'index.php/boardannouncements/close/1?hash=wrong&sid=' . $this->sid, [], false);
133133
self::assert_response_status_code(403);
134134
$this->assertContainsLang('NO_AUTH_OPERATION', $crawler->text());
135135

136136
// No hash
137-
$crawler = self::request('GET', 'app.php/boardannouncements/close/1?sid=' . $this->sid, [], false);
137+
$crawler = self::request('GET', 'index.php/boardannouncements/close/1?sid=' . $this->sid, [], false);
138138
self::assert_response_status_code(403);
139139
$this->assertContainsLang('NO_AUTH_OPERATION', $crawler->text());
140140
}
@@ -146,7 +146,7 @@ public function test_close_announcement()
146146
{
147147
$this->login();
148148

149-
self::request('GET', 'app.php/boardannouncements/close/1?hash=' . $this->mock_link_hash('close_boardannouncement') . '&sid=' . $this->sid);
149+
self::request('GET', 'index.php/boardannouncements/close/1?hash=' . $this->mock_link_hash('close_boardannouncement') . '&sid=' . $this->sid);
150150
$crawler = self::request('GET', 'index.php?sid=' . $this->sid);
151151
self::assertCount(0, $crawler->filter('#phpbb_announcement_1'));
152152
}

0 commit comments

Comments
 (0)