mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
Merge remote-tracking branch 'p/ticket/11265' into develop-olympus
* p/ticket/11265: [ticket/11265] Add assertions for board installation success.
This commit is contained in:
commit
73e7fa8e8e
1 changed files with 11 additions and 3 deletions
|
@ -183,12 +183,20 @@ class phpbb_functional_test_case extends phpbb_test_case
|
||||||
self::assertNotSame(false, $content);
|
self::assertNotSame(false, $content);
|
||||||
self::assertContains('Welcome to Installation', $content);
|
self::assertContains('Welcome to Installation', $content);
|
||||||
|
|
||||||
self::do_request('create_table', $data);
|
$content = self::do_request('create_table', $data);
|
||||||
|
self::assertNotSame(false, $content);
|
||||||
|
self::assertContains('The database tables used by phpBB', $content);
|
||||||
|
// 3.0 or 3.1
|
||||||
|
self::assertContains('have been created and populated with some initial data.', $content);
|
||||||
|
|
||||||
self::do_request('config_file', $data);
|
$content = self::do_request('config_file', $data);
|
||||||
|
self::assertNotSame(false, $content);
|
||||||
|
self::assertContains('Configuration file', $content);
|
||||||
file_put_contents($phpbb_root_path . "config.$phpEx", phpbb_create_config_file_data($data, self::$config['dbms'], array(), true, true));
|
file_put_contents($phpbb_root_path . "config.$phpEx", phpbb_create_config_file_data($data, self::$config['dbms'], array(), true, true));
|
||||||
|
|
||||||
self::do_request('final', $data);
|
$content = self::do_request('final', $data);
|
||||||
|
self::assertNotSame(false, $content);
|
||||||
|
self::assertContains('You have successfully installed', $content);
|
||||||
copy($phpbb_root_path . "config.$phpEx", $phpbb_root_path . "config_test.$phpEx");
|
copy($phpbb_root_path . "config.$phpEx", $phpbb_root_path . "config_test.$phpEx");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue