@@ -15,15 +15,23 @@ class JoomlaBrowser extends WebDriver
1515 'url ' ,
1616 'browser ' ,
1717 'username ' ,
18- 'password '
18+ 'password ' ,
19+ 'database type ' ,
20+ 'database host ' ,
21+ 'database user ' ,
22+ 'database password ' ,
23+ 'database name ' ,
24+ 'database type ' ,
25+ 'database prefix ' ,
26+ 'admin email ' ,
27+ 'language ' ,
28+
1929 );
2030
2131 /**
2232 * Function to Do Admin Login In Joomla!
23- *
24- * @return void
2533 */
26- public function doAdminLogin ()
34+ public function doAdministratorLogin ()
2735 {
2836 $ I = $ this ;
2937 $ I ->amOnPage ('/administrator/index.php ' );
@@ -33,6 +41,9 @@ public function doAdminLogin()
3341 $ I ->waitForText ('Control Panel ' , 10 , 'H1 ' );
3442 }
3543
44+ /**
45+ * Installs Joomla
46+ */
3647 public function installJoomla ()
3748 {
3849 $ I = $ this ;
@@ -84,4 +95,23 @@ public function installJoomla()
8495 // Wait while Joomla gets installed
8596 $ I ->waitForText ('Congratulations! Joomla! is now installed. ' , 30 , 'h3 ' );
8697 }
98+
99+ /**
100+ * Sets in Adminitrator->Global Configuration the Error reporting to Development
101+ */
102+ public function setErrorReportingtoDevelopment ()
103+ {
104+ $ I = $ this ;
105+ $ I ->doAdministratorLogin ();
106+
107+ $ I ->amOnPage ('/administrator/index.php?option=com_config ' );
108+ $ I ->waitForText ('Global Configuration ' ,10 ,'.page-title ' );
109+ $ I ->click ('Server ' );
110+ $ I ->waitForElementVisible ("//div[@id='jform_error_reporting_chzn']/a " ); // Error reporting Dropdown
111+ $ I ->click ("//div[@id='jform_error_reporting_chzn']/a " );
112+ $ I ->click ("//div[@id='jform_error_reporting_chzn']/div/ul/li[contains(text(), 'Development')] " ); // Development
113+ $ I ->click ('Save ' );
114+ $ I ->waitForText ('Global Configuration ' ,10 ,'.page-title ' );
115+ $ I ->see ('Configuration successfully saved. ' ,'#system-message-container ' );
116+ }
87117}
0 commit comments