Skip to content

Commit

Permalink
simplify how we're invoking proc
Browse files Browse the repository at this point in the history
  • Loading branch information
jazzsequence committed Apr 3, 2024
1 parent dbf74ed commit e2980f2
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions features/steps/given.php
Original file line number Diff line number Diff line change
Expand Up @@ -158,12 +158,10 @@ function($world) {

$steps->Given('/^the current WP version is not the latest$/', function ($world) {
// Use wp-cli to get the currently installed WordPress version.
$currentVersion = $world->proc('wp core version', [])
->run_check();
$currentVersion = $world->proc('wp core version');

// Use wp-cli to get the latest WordPress version available.
$latestVersion = $world->proc('wp core check-update --field=version', [])
->run_check();
$latestVersion = $world->proc('wp core check-update --field=version');

// Normalize versions (remove new lines).
$currentVersion = trim($currentVersion);
Expand Down

0 comments on commit e2980f2

Please sign in to comment.