Actions
Bug #27692
closedFileBackendTest setThrowsExceptionForInvalidIdentifier fails
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Tests
Target version:
-
Start date:
2011-06-24
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
4.6
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
t3lib_cache_backend_FileBackendTest::setThrowsExceptionForInvalidIdentifier
tests fail with
PHP Warning: Missing argument 1 for t3lib_cache_backend_AbstractBackend::__construct(), called in typo3conf/ext/phpunit/PEAR/PHPUnit/Framework/MockObject/Generator.php on line 190 and defined in t3lib/cache/backend/class.t3lib_cache_backend_abstractbackend.php line 77
Mocking is done this way:
$backend = $this->getMock('t3lib_cache_backend_FileBackend', array('dummy'), array(), '', TRUE);
but should be
$backend = $this->getMock('t3lib_cache_backend_FileBackend', array('dummy'), array('test'), '', TRUE);
However, it is weird that other tests using a very similar code don't fail.
Updated by Mr. Hudson over 13 years ago
Patch set 1 of change Ib38f602723826340a5c3afd0a9f79cc9aa1dae66 has been pushed to the review server.
It is available at http://review.typo3.org/2923
Updated by Steffen Gebert over 13 years ago
- Status changed from New to Resolved
- % Done changed from 0 to 100
Applied in changeset 4e5d1b35e5d570b50eefe53b8d091014e689915a.
Updated by Xavier Perseguers over 12 years ago
- Status changed from Resolved to Closed
Actions