[BUGFIX] Fix failing PHPUnit-Tests on Windows due to uniqid()-calls 28/35528/2
authorStephan Großberndt <stephan@grossberndt.de>
Tue, 16 Dec 2014 22:42:07 +0000 (23:42 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Tue, 16 Dec 2014 23:13:17 +0000 (00:13 +0100)
commit84f2d555fb91d3e3123e778c5f38a547b6a386b2
tree2bb0608a777ae10c5c02446e76a99389357528b6
parenta699aceb5c36d86e5666c923b4b5359ffb87916d
[BUGFIX] Fix failing PHPUnit-Tests on Windows due to uniqid()-calls

If in one test multiple objects are created and their names are created
with uniqid()-calls without params, they fail because they return the
same value.

Using md5(uniqid(microtime(), true)) instead makes object names unique.

Resolves: #63943
Releases: master, 6.2
Change-Id: Ib223d45f04946223c4a8ae9ce68a5c5b24459355
Reviewed-on: http://review.typo3.org/35528
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/extbase/Tests/Unit/DomainObject/AbstractEntityTest.php
typo3/sysext/extbase/Tests/Unit/Mvc/Web/Routing/UriBuilderTest.php