Unverified Commit e6afc6e8 authored by joseph.olstad's avatar joseph.olstad Committed by GitHub

og fix head tests for various versions of php php 5.4, 5.5, 5.6, 7.0, 7.1,...

og fix head tests for various versions of php php 5.4, 5.5, 5.6, 7.0, 7.1, 7.2, see https://drupal.org/node/3000030 patch 2.

 see https://drupal.org/node/3000030 patch 2.
parent faea5e65
......@@ -2166,7 +2166,10 @@ class OgNonMembersPublishingContentTestCase extends DrupalWebTestCase {
$this->assertTrue(!empty($result['node']), 'The node was added to the group.');
$nid = reset(array_keys($result['node']));
// Avoid strict errors in php 5.4, 5.5, 5.6, 7.0, 7.1, 7.2, see https://drupal.org/node/3000030 patch 2.
$result_node = $result['node'];
$node_array_keys = array_keys($result_node);
$nid = reset($node_array_keys);
$this->drupalLogin($this->adminUser);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment