tests: Clean up use of mt_rand()
authorTimo Tijhof <krinklemail@gmail.com>
Thu, 3 Dec 2015 13:32:04 +0000 (13:32 +0000)
committerKrinkle <krinklemail@gmail.com>
Thu, 3 Dec 2015 13:45:55 +0000 (13:45 +0000)
commitfbab4fecef8dcd4010d5c81736cccb565bf218da
treed70e2f048259c5fadff331f749285a1d5484d1a4
parent1a8f927d703dd86044a522049e8ed03b229555ce
tests: Clean up use of mt_rand()

* ApiQueryTest: One random is enough.

* FileBackendTest: More consistent and idiomatic via wfRandomString()

* MigrateFileRepoLayoutTest: Use getNewTempDirectory(). Similar to
  what FileBackendTest used already.
* UploadFromUrlTestSuite: Use getNewTempDirectory().

Change-Id: I772de2134be41506d8ed08367be8c18f354bfc72
includes/GlobalFunctions.php
tests/phpunit/includes/api/query/ApiQueryTest.php
tests/phpunit/includes/filebackend/FileBackendTest.php
tests/phpunit/includes/filerepo/MigrateFileRepoLayoutTest.php
tests/phpunit/suites/UploadFromUrlTestSuite.php