Commit 4df80c61 authored by catch's avatar catch
Browse files

Issue #3358384 by Spokje, mondrake: Deprecate...

Issue #3358384 by Spokje, mondrake: Deprecate \Drupal\Tests\RandomGeneratorTrait::randomStringValidate
parent 8008bb1b
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -41,8 +41,15 @@ public function randomString($length = 8) {
   *
   * @return bool
   *   TRUE if the random string is valid, FALSE if not.
   *
   * @deprecated in drupal:10.2.0 and is removed from drupal:11.0.0.
   *   Use \Drupal\TestTools\Random::stringValidate() instead.
   *
   * @see https://www.drupal.org/node/3358389
   */
  public function randomStringValidate($string) {
    @trigger_error(__METHOD__ . "() is deprecated in drupal:10.2.0 and is removed from drupal:11.0.0. Use \Drupal\TestTools\Random::stringValidate() instead. See https://www.drupal.org/node/3358389", E_USER_DEPRECATED);

    return Random::stringValidate($string);
  }