mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-08 01:36:57 +02:00
[ticket/13645] Move the feeds to controllers
PHPBB3-13645
This commit is contained in:
committed by
Tristan Darricau
parent
f56fe0ba8d
commit
8e5e954438
@@ -24,6 +24,19 @@ class phpbb_functional_controllers_compatibility_test extends phpbb_functional_t
|
||||
$this->assert301('report.php?pm=1', 'app.php/pm/1/report');
|
||||
}
|
||||
|
||||
public function test_feed_compatibility()
|
||||
{
|
||||
$this->assert301('feed.php', 'app.php/feed');
|
||||
$this->assert301('feed.php?mode=foobar', 'app.php/feed/foobar');
|
||||
$this->assert301('feed.php?mode=news', 'app.php/feed/news');
|
||||
$this->assert301('feed.php?mode=topics', 'app.php/feed/topics');
|
||||
$this->assert301('feed.php?mode=topics_news', 'app.php/feed/topics_news');
|
||||
$this->assert301('feed.php?mode=topics_active', 'app.php/feed/topics_active');
|
||||
$this->assert301('feed.php?mode=forums', 'app.php/feed/forums');
|
||||
$this->assert301('feed.php?f=1', 'app.php/feed/forum/1');
|
||||
$this->assert301('feed.php?t=1', 'app.php/feed/topic/1');
|
||||
}
|
||||
|
||||
protected function assert301($from, $to)
|
||||
{
|
||||
self::$client->followRedirects(false);
|
||||
|
Reference in New Issue
Block a user