1
0
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:
Nicofuma
2015-02-22 23:36:27 +01:00
committed by Tristan Darricau
parent f56fe0ba8d
commit 8e5e954438
34 changed files with 1019 additions and 534 deletions

View File

@@ -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);