Bug #36310
ContextTest broken due to missing ActionRequestHandler
| Status: | Resolved | Start date: | 2012-04-19 | |
|---|---|---|---|---|
| Priority: | Should have | Due date: | ||
| Assignee: | Karsten Dambekalns | % Done: | 100% |
|
| Category: | MVC | |||
| Target version: | - | |||
| PHP Version: | 5.3 | Complexity: | ||
| Has patch: | No | FLOW3 version affected: | Git 1.1 | |
| Votes: | 0 |
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 7Thanks 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
Updated by Jacob Floyd about 1 year 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.
Updated by Karsten Dambekalns 11 months ago
- Status changed from New to Resolved
- Assignee set to Karsten Dambekalns
- % Done changed from 0 to 100
- FLOW3 version affected changed from Git master to Git 1.1
Solved by now.