diff options
author | Tristan Darricau <tristan.darricau@sensiolabs.com> | 2016-03-25 11:46:15 +0100 |
---|---|---|
committer | Tristan Darricau <tristan.darricau@sensiolabs.com> | 2016-03-25 11:46:15 +0100 |
commit | 3eb6f7176ac44b5786379162fc73df3abd196646 (patch) | |
tree | ae5106d10c1515588243a016fc089a98c71fd8e5 /tests | |
parent | e873ed69449f4cbe0f055f0f9d25d0ef472fbc3a (diff) | |
parent | 4e717c1725474265a694bd300b024030769dbd85 (diff) | |
download | forums-3eb6f7176ac44b5786379162fc73df3abd196646.tar forums-3eb6f7176ac44b5786379162fc73df3abd196646.tar.gz forums-3eb6f7176ac44b5786379162fc73df3abd196646.tar.bz2 forums-3eb6f7176ac44b5786379162fc73df3abd196646.tar.xz forums-3eb6f7176ac44b5786379162fc73df3abd196646.zip |
Merge pull request #4193 from marc1706/ticket/14497
[ticket/14497] Support second app.php script in install folder
* marc1706/ticket/14497:
[ticket/14497] Do not check for doctype on index and use correct return
[ticket/14497] Add test for visiting installer
[ticket/14497] Use nginx sample config in travis tests
[ticket/14497] Support second app.php script in install folder
Diffstat (limited to 'tests')
-rw-r--r-- | tests/functional/visit_installer_test.php | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/tests/functional/visit_installer_test.php b/tests/functional/visit_installer_test.php new file mode 100644 index 0000000000..b4a75c0b51 --- /dev/null +++ b/tests/functional/visit_installer_test.php @@ -0,0 +1,30 @@ +<?php +/** +* +* This file is part of the phpBB Forum Software package. +* +* @copyright (c) phpBB Limited <https://www.phpbb.com> +* @license GNU General Public License, version 2 (GPL-2.0) +* +* For full copyright and license information, please see +* the docs/CREDITS.txt file. +* +*/ + +/** +* @group functional +*/ +class phpbb_functional_visit_installer_test extends phpbb_functional_test_case +{ + public function test_visit_installer() + { + self::request('GET', 'install/', [], false); + $this->assertContains('<meta http-equiv="refresh" content="0; url=./app.php" />', $this->get_content()); + + self::request('GET', 'install/index.html', [], false); + $this->assertContains('<meta http-equiv="refresh" content="0; url=./app.php" />', $this->get_content()); + + self::request('GET', 'install/app.php'); + $this->assertContains('installation system', $this->get_content()); + } +} |