1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 22:10:45 +02:00

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
This commit is contained in:
Tristan Darricau
2016-03-25 11:46:15 +01:00
3 changed files with 61 additions and 16 deletions

View File

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