Bug #36310

ContextTest broken due to missing ActionRequestHandler

Added by Jacob Floyd over 3 years ago. Updated about 3 years ago.

Status:Resolved Start date:2012-04-19
Priority:Should have Due date:
Assigned To:Karsten Dambekalns % Done:

100%

Category:MVC
Target version:-
PHP Version:5.3 Complexity:
Has patch:No Affected Flow version:Git 1.1

Description

So, I'm running the test suite on a fresh checkout of git master git clone --recursive git://git.typo3.org/FLOW3/Distributions/Base.git -o typo3.

To run the tests, I'm doing phpunit -c Build/Common/PhpUnit/UnitTests.xml

Part way through, I'm getting:

PHP Fatal error:  Class 'TYPO3\FLOW3\Mvc\TYPO3\FLOW3\Mvc\ActionRequestHandler' not found in /usr/share/php/PHPUnit/Framework/MockObject/Generator.php(170) : eval()'d code on line 7

Fatal error: Class 'TYPO3\FLOW3\Mvc\TYPO3\FLOW3\Mvc\ActionRequestHandler' not found in /usr/share/php/PHPUnit/Framework/MockObject/Generator.php(170) : eval()'d code on line 7
Thanks to grep, it seems that the only tests that uses an ActionRequestHandler are in Tests/Unit/Security/ContextTest.php:
  • securityContextIsSetToInitialized()
  • initializeSeparatesActiveAdnInactiveTokens()

In both cases, getMock('TYPO3\FLOW3\Mvc\ActionRequestHandler' is used. However, I don't see an ActionRequestHandler. There's an ActionRequest, but not a Handler. Does this need to change according to recent Http changes? should it be using Http\Request or Mvc\ActionRequest or something else entirely?

I'm using phpunit 3.5.13 and php 5.3.10-pl0-gentoo

History

#1 Updated by Jacob Floyd over 3 years ago

Or perhaps what's really wanted is Http\RequestHandler?

use TYPO3\FLOW3\Http\Request is in this file, so maybe the Http stuff is what we want in this case, and not the ActionRequest. Then again, I don't quite understand all the Http changes, so I'm just guessing.

#2 Updated by Karsten Dambekalns about 3 years ago

  • Status changed from New to Resolved
  • Assigned To set to Karsten Dambekalns
  • % Done changed from 0 to 100
  • Affected Flow version changed from Git master to Git 1.1

Solved by now.

Also available in: Atom PDF