diff --git a/core/modules/simpletest/lib/Drupal/simpletest/TestBase.php b/core/modules/simpletest/lib/Drupal/simpletest/TestBase.php
index 93cdbf2..4c30e71 100644
--- a/core/modules/simpletest/lib/Drupal/simpletest/TestBase.php
+++ b/core/modules/simpletest/lib/Drupal/simpletest/TestBase.php
@@ -531,7 +531,37 @@ protected function assertIdenticalObject($object1, $object2, $message = '', $gro
     return $this->assertTrue($identical, $message, $group);
   }
 
-
+  /**
+   * Asserts that two arrays are the same, but not checking the order of it.
+   *
+   * @param array $first
+   *   The first value to check.
+   * @param array $second
+   *   The second value to check.
+   * @param string $message
+   *   (optional) A message to display with the assertion. Do not translate
+   *   messages: use format_string() to embed variables in the message text, not
+   *   t(). If left blank, a default message will be displayed.
+   * @param string $group
+   *   (optional) The group this message is in, which is displayed in a column
+   *   in test output. Use 'Debug' to indicate this is debugging output. Do not
+   *   translate this string. Defaults to 'Other'; most tests do not override
+   *   this default.
+   * @return bool
+   *   TRUE on pass, FALSE on fail.
+   */
+  protected function assertArrayEqual(array $first, array $second, $message = '', $group = 'Other') {
+    $diff = array_diff($first, $second);
+    if (empty($diff)) {
+      $this->assert(TRUE, $message ? $message : format_string('Value @first is equal to value @second.', array(
+        '@first' => var_export($first, TRUE),
+        '@second' => var_export($second, TRUE)
+      )), $group);
+    }
+    else {
+      $this->assert(FALSE, $message ? $message : format_string('The first value differs from the second by @diff.', array('@diff' => var_export($diff, TRUE))));
+    }
+  }
 
   /**
    * Fire an assertion that is always positive.
