Project

General

Profile

Actions

Bug #64055

closed

PHPUnit-Tests fail on Windows (2)

Added by Stephan Großberndt almost 10 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
-
Target version:
Start date:
2014-12-29
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
medium
Is Regression:
No
Sprint Focus:

Description

Another test failing on windows (similar to #63943)

Fatal error: Cannot redeclare class TYPO3\CMS\Backend\Tests\Unit\Utility\BackendUtility54a1a650122b7 in D:\typo3\master\typo3\sysext\backend\Tests\Unit\Utility\BackendUtilityTest.php(242) : eval()'d code on line 1

This is due to

    public function getProcessedValueForGroupWithMultipleAllowedTables() {
        // Disable getRecordWSOL and getRecordTitle dependency by returning stable results
        /** @var \PHPUnit_Framework_MockObject_MockObject|\TYPO3\CMS\Backend\Utility\BackendUtility $subject */
        $className = uniqid('BackendUtility');
        $subject = __NAMESPACE__ . '\\' . $className;

which has to be replaced with

$className = 'BackendUtility' . md5(uniqid(mt_rand(), TRUE));

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #63943: PHPUnit-Tests fail on WindowsClosedStephan Großberndt2014-12-16

Actions
Actions #1

Updated by Gerrit Code Review almost 10 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/35665

Actions #2

Updated by Gerrit Code Review almost 10 years ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/35665

Actions #3

Updated by Gerrit Code Review almost 10 years ago

Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/35665

Actions #4

Updated by Gerrit Code Review almost 10 years ago

Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/35665

Actions #5

Updated by Gerrit Code Review almost 10 years ago

Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/35665

Actions #6

Updated by Gerrit Code Review almost 10 years ago

Patch set 6 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/35665

Actions #7

Updated by Gerrit Code Review almost 10 years ago

Patch set 7 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/35665

Actions #8

Updated by Gerrit Code Review almost 10 years ago

Patch set 8 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/35665

Actions #9

Updated by Stephan Großberndt almost 10 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #10

Updated by Gerrit Code Review almost 10 years ago

  • Status changed from Resolved to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/36110

Actions #11

Updated by Gerrit Code Review almost 10 years ago

Patch set 1 for branch TYPO3_6-2 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/36133

Actions #12

Updated by Stephan Großberndt almost 10 years ago

  • Complexity changed from no-brainer to medium

It turned out that there is a inconsistent usage of uniqid() all over the core. A single implementation of getUniqueId() in BaseTestCase will be called for all usages of uniqid() in tests.

Actions #13

Updated by Stephan Großberndt almost 10 years ago

  • Status changed from Under Review to Resolved
Actions #14

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF