diff -u b/core/tests/Drupal/Tests/Component/Utility/RandomTest.php b/core/tests/Drupal/Tests/Component/Utility/RandomTest.php --- b/core/tests/Drupal/Tests/Component/Utility/RandomTest.php +++ b/core/tests/Drupal/Tests/Component/Utility/RandomTest.php @@ -27,7 +27,9 @@ } /** - * Tests Random::string(). + * Tests unique random name generation. + * + * @see \Drupal\Component\Utility\Random::name() */ function testRandomStringUniqueness() { $strings = array(); @@ -39,7 +41,9 @@ } /** - * Tests Random::string(). + * Tests unique random string generation. + * + * @see \Drupal\Component\Utility\Random::string() */ function testRandomNamesUniqueness() { $names = array(); @@ -51,7 +55,9 @@ } /** - * Tests infinite loop prevention in Random::name(). + * Tests infinite loop prevention whilst generating random names. + * + * @see \Drupal\Component\Utility\Random::name() * * @expectedException RuntimeException */ @@ -65,7 +71,9 @@ } /** - * Tests infinite loop prevention in Random::string(). + * Tests infinite loop prevention whilst generating random strings. + * + * @see \Drupal\Component\Utility\Random::string() * * @expectedException RuntimeException */ @@ -79,7 +87,9 @@ } /** - * Tests Random::name() if uniqueness is not enforced. + * Tests random name generation if uniqueness is not enforced. + * + * @see \Drupal\Component\Utility\Random::name() */ public function testRandomNameNonUnique() { // There are fewer than 100 possibilities if we were forcing uniqueness so @@ -91,7 +101,9 @@ } /** - * Tests Random::string() if uniqueness is not enforced. + * Tests random string if uniqueness is not enforced. + * + * @see \Drupal\Component\Utility\Random::string() */ public function testRandomStringNonUnique() { // There are fewer than 100 possibilities if we were forcing uniqueness so @@ -103,11 +115,13 @@ } /** - * Tests Random::object() to ensure it has the expected number of properties. + * Tests random object generation to ensure the expected number of properties. + * + * @see \Drupal\Component\Utility\Random::object() */ public function testRandomObject() { - // For values of 0 and 1 Random::object() will have different execution - // paths. + // For values of 0 and 1 \Drupal\Component\Utility\Random::object() will + // have different execution paths. for ($i = 0; $i <= 1; $i++) { $obj = Random::object($i); $this->assertEquals($i, count(get_object_vars($obj)), 'Generated random object has expected number of properties');