Project

General

Profile

Actions

Bug #65744

closed

Remove uniqid() usage in ConditionMatcherTest

Added by Stephan Großberndt about 9 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Tests
Target version:
Start date:
2015-03-15
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
no-brainer
Is Regression:
No
Sprint Focus:

Description

On windows and in cygwin environments uniqid() has a resolution of one second which results in identical ids if simply uniqid('Foo'); is called.
Because of this uniqid() calls should always be done using \TYPO3\CMS\Core\Tests\BaseTestCase->getUniqueId().

typo3/sysext/frontend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php

$testKey = uniqid('test');

Actions

Also available in: Atom PDF