diff --git a/htdocs/install/fileconf.php b/htdocs/install/fileconf.php index 1782be430bc..17784e8b766 100644 --- a/htdocs/install/fileconf.php +++ b/htdocs/install/fileconf.php @@ -131,7 +131,7 @@ if (! empty($force_install_message)) value="" name="main_dir" > @@ -151,7 +151,7 @@ if (! empty($force_install_message)) trans("DocumentsDirectory"); ?> " name="main_data_dir" > @@ -193,7 +193,7 @@ if (! empty($force_install_message)) name="main_url" value=" " > @@ -214,10 +214,10 @@ if (! empty($force_install_message)) > @@ -245,7 +245,7 @@ if (! empty($force_install_message)) name="db_name" value="" > @@ -325,7 +325,7 @@ if (! empty($force_install_message)) > @@ -478,9 +478,9 @@ if (! empty($force_install_message)) id="db_user_root" name="db_user_root" class="needroot" - value="" + value="" > @@ -506,7 +506,7 @@ if (! empty($force_install_message)) class="needroot" value="db->type,$conf->db->host,$conf->db->user,$conf->db- if ($db->ok) { print ''.$langs->trans("DolibarrAdminLogin").' :'; - print ''; + print ''; print ''.$langs->trans("Password").' :'; print ''; print ''.$langs->trans("PasswordAgain").' :'; diff --git a/test/phpunit/zenfusion/functional/DolibarrInstallTest.php b/test/phpunit/zenfusion/functional/DolibarrInstallTest.php new file mode 100644 index 00000000000..5fcb37fdb63 --- /dev/null +++ b/test/phpunit/zenfusion/functional/DolibarrInstallTest.php @@ -0,0 +1,33 @@ +setHost('localhost'); + $this->setPort(4444); + $this->setBrowserUrl('http://dev.zenfusion.fr'); + $this->setBrowser('chrome'); + } + + public function setUpPage() + { + $this->url('/'); + } + + public function testInstallRedirect() + { + $this->assertContains('/install/index.php', $this->url()); + } + + public function testInstallPageTitle() + { + $this->assertContains('Dolibarr', $this->title()); + } + + public function testInstallProcess() + { + $this->byName('forminstall')->submit(); + $this->assertContains('/install/check.php', $this->url()); + } +}