Project

General

Profile

Actions

Bug #55269

closed

Exception in UnitTests with installed EXT:workspace

Added by Stefano Kowalke almost 11 years ago. Updated almost 10 years ago.

Status:
Rejected
Priority:
Should have
Assignee:
-
Category:
Tests
Target version:
Start date:
2014-01-23
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
5.5
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

How to reproduce:
  1. Be sure that EXT:workspaces is installed
  2. Activate the PHPUnit Module in the BE
  3. Leave the selector on "All extensions"
  4. Hit "Run all tests"

You should get this warning immediately:

Warning: Uncaught exception 'PHPUnit_Framework_Error_Warning' with message 'require_once(ORIGINAL_ROOTtypo3/sysext/core/Tests/Functional/DataHandling/InlineRelationalRecordEditing/AbstractTestCase.php): failed to open stream: No such file or directory'

This happens because of the line

require_once(ORIGINAL_ROOT . 'typo3/sysext/core/Tests/Functional/DataHandling/InlineRelationalRecordEditing/AbstractTestCase.php');
in typo3\sysext\workspaces\Tests\Functional\DataHandling\InlineRelationalRecordEditing\AbstractTestCase.php

Actions #1

Updated by Markus Klein almost 11 years ago

  • Status changed from New to Accepted
  • Assignee set to Oliver Hader

Functional tests should all be skipped when running the unit tests in BE.

This is already checked for some core functional tests, but obviously not in the workspaces extension.
But honestly, I've no idea how to solve that easily because the constant is used in a require_once statement.

Since Olly is assigned to the "Workspaces Test-Cases and Fixes" workpackage, I take the freedom to assign him here.

Actions #2

Updated by Mathias Schreiber almost 10 years ago

  • Status changed from Accepted to Rejected
  • Assignee deleted (Oliver Hader)
Actions

Also available in: Atom PDF