File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -122,7 +122,10 @@ function setup_wordpress_site($driver) {
122122 $ driver ->findElement ( WebDriverBy::tagName ( 'form ' ) )->submit ();
123123
124124 $ h1s = $ driver ->findElements ( WebDriverBy::tagName ( 'h1 ' ) );
125- $ texts = array_map ( 'innerText ' , $ h1s );
125+ $ texts = array_map ( function ($ h1 ) {
126+ return $ h1 ->getText ();
127+ }, $ h1s );
128+
126129 if ( array_search ( 'Success ' , $ texts ) >= 0 ) {
127130 print "Setting up WordPress is successful. \n" ;
128131 } else {
Original file line number Diff line number Diff line change 11<?php
22
33require dirname ( __FILE__ ) . '/../unit/TinyTestCase.php ' ;
4- require dirname ( __FILE__ ) . '/../helpers/integration-helper.php ' ;
54require dirname ( __FILE__ ) . '/../helpers/setup.php ' ;
65
76use Facebook \WebDriver \WebDriverBy ;
You can’t perform that action at this time.
0 commit comments