Skip to content

Commit 629bd2d

Browse files
committed
Add a functional test to visit the topic and see whether it still loads
1 parent be7e3e9 commit 629bd2d

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

tests/functional/install_test.php

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<?php
2+
3+
/**
4+
*
5+
* @package phpBB.de Move Message
6+
* @copyright (c) 2014 phpBB.de
7+
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
8+
*
9+
*/
10+
11+
namespace phpbbde\movemessage\tests\functional;
12+
13+
/**
14+
* @group functional
15+
*/
16+
class install_test extends \phpbb_functional_test_case
17+
{
18+
static protected function setup_extensions()
19+
{
20+
return array('phpbbde/movemessage');
21+
}
22+
23+
public function test_validate_viewtopic()
24+
{
25+
$crawler = self::request('GET', 'viewtopic.php?f=1&t=1');
26+
$this->assertContains('Welcome to phpBB3', $crawler->filter('h2')->text());
27+
}
28+
}

0 commit comments

Comments
 (0)