Skip to content

Commit d2f16fa

Browse files
Get rid of integration helper.
1 parent 73284ed commit d2f16fa

3 files changed

Lines changed: 4 additions & 7 deletions

File tree

test/helpers/integration-helper.php

Lines changed: 0 additions & 5 deletions
This file was deleted.

test/helpers/setup.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff 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 {

test/integration/IntegrationTestCase.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<?php
22

33
require dirname( __FILE__ ) . '/../unit/TinyTestCase.php';
4-
require dirname( __FILE__ ) . '/../helpers/integration-helper.php';
54
require dirname( __FILE__ ) . '/../helpers/setup.php';
65

76
use Facebook\WebDriver\WebDriverBy;

0 commit comments

Comments
 (0)