We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 79b769d commit b890995Copy full SHA for b890995
1 file changed
test/helpers/setup.php
@@ -131,10 +131,10 @@ function setup_wordpress_site( $driver ) {
131
return $h1->getText();
132
}, $h1s );
133
134
- if ( array_search( 'Dashboard', $texts ) !== NULL) {
+ if ( array_search( 'Dashboard', $texts ) !== false ) {
135
print "Setting up WordPress is successful.\n";
136
/* Already logged in. */
137
- } elseif ( array_search( 'Success', $texts ) !== NULL ) {
+ } elseif ( array_search( 'Success', $texts ) !== false || array_search( 'Success!', $texts ) !== false ) {
138
139
login( $driver );
140
} else {
0 commit comments