diff --git a/core/modules/simpletest/lib/Drupal/simpletest/TestBase.php b/core/modules/simpletest/lib/Drupal/simpletest/TestBase.php
index f129a0f2d8c2272c0d272647889664673bbebdb6..794054d5d6834bf58f12391f0667de8976093c13 100644
--- a/core/modules/simpletest/lib/Drupal/simpletest/TestBase.php
+++ b/core/modules/simpletest/lib/Drupal/simpletest/TestBase.php
@@ -845,7 +845,7 @@ public static function randomName($length = 8) {
    *   'one' => array(0, 1),
    *   'two' => array(2, 3),
    * );
-   * $permutations = $this->permute($parameters);
+   * $permutations = TestBase::generatePermutations($parameters);
    * // Result:
    * $permutations == array(
    *   array('one' => 0, 'two' => 2),