Commit 73175026 authored by Suvasish Manna's avatar Suvasish Manna Committed by renatog
Browse files

Issue #3272088 by suvasish.manna, marciaibanez, RenatoG: Php 8 Compatibility Issue

parent 9a6418bc
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -48,7 +48,7 @@ class AdminMenuWebTestCase extends DrupalWebTestCase {
   * @return
   *   TRUE if the assertion succeeded, FALSE otherwise.
   */
  protected function assertElementByXPath($xpath, array $arguments = array(), $message, $group = 'Other') {
  protected function assertElementByXPath($xpath, array $arguments, $message, $group = 'Other') {
    $elements = $this->xpath($xpath, $arguments);
    return $this->assertTrue(!empty($elements[0]), $message, $group);
  }
@@ -69,7 +69,7 @@ class AdminMenuWebTestCase extends DrupalWebTestCase {
   * @return
   *   TRUE if the assertion succeeded, FALSE otherwise.
   */
  protected function assertNoElementByXPath($xpath, array $arguments = array(), $message, $group = 'Other') {
  protected function assertNoElementByXPath($xpath, array $arguments, $message, $group = 'Other') {
    $elements = $this->xpath($xpath, $arguments);
    return $this->assertTrue(empty($elements), $message, $group);
  }