@@ -58,7 +58,7 @@ public function installJoomla()
5858 $ this ->debug ('I open Joomla Installation Configuration Page and fill the fields ' );
5959
6060 // I Wait for the text Main Configuration, meaning that the page is loaded
61- $ this ->debug ('I for Main Configuration ' );
61+ $ this ->debug ('I wait for Main Configuration ' );
6262 $ I ->waitForText ('Main Configuration ' , 10 , 'h3 ' );
6363
6464 $ this ->debug ('I click Language Selector ' );
@@ -142,7 +142,9 @@ public function setErrorReportingtoDevelopment()
142142 }
143143
144144 /**
145- * Sets in Adminitrator->Global Configuration the Error reporting to Development
145+ * Installs a Extension in Joomla that is located in a folder inside the server
146+ *
147+ * @param $path
146148 *
147149 * @note: doAdminLogin() before
148150 */
@@ -156,4 +158,24 @@ public function installExtensionFromDirectory($path)
156158 $ I ->click ("//input[contains(@onclick,'Joomla.submitbutton3()')] " ); // Install button
157159 $ I ->waitForText ('was successful ' , 10 , '#system-message-container ' );
158160 }
161+
162+ /**
163+ * Function to check for PHP Notices or Warnings
164+ *
165+ * @param string $page Optional, if not given checks will be done in the current page
166+ *
167+ * @note: doAdminLogin() before
168+ */
169+ public function checkForPhpNoticesOrWarnings ($ page = null )
170+ {
171+ $ I = $ this ;
172+
173+ if ($ page )
174+ {
175+ $ I ->amOnPage ($ page );
176+ }
177+
178+ $ I ->dontSeeInPageSource ('Notice: ' );
179+ $ I ->dontSeeInPageSource ('Warning: ' );
180+ }
159181}
0 commit comments