Project

General

Profile

Bug #22435 » 14079_v2.diff

Administrator Admin, 2010-04-14 16:47

View differences:

tests/t3lib/matchcondition/t3lib_matchcondition_frontend_testcase.php (working copy)
* @test
*/
public function deprecatedBrowserInfoHookIsCalled() {
$GLOBALS['TYPO3_CONF_VARS']['SYS']['enableDeprecationLog'] = FALSE;
$classRef = uniqid('tx_browserInfoHook');
$browserInfoHookMock = $this->getMock($classRef, array('browserInfo'));
$browserInfoHookMock->expects($this->atLeastOnce())->method('browserInfo');
......
* @test
*/
public function deprecatedWhichDeviceHookIsCalled() {
$GLOBALS['TYPO3_CONF_VARS']['SYS']['enableDeprecationLog'] = FALSE;
$classRef = uniqid('tx_whichDeviceHook');
$whichDeviceHookMock = $this->getMock($classRef, array('whichDevice'));
$whichDeviceHookMock->expects($this->atLeastOnce())->method('whichDevice');
tests/t3lib/t3lib_matchcondition_testcase.php (working copy)
'T3_VAR' => $GLOBALS['T3_VAR'],
);
$GLOBALS['TYPO3_CONF_VARS']['SYS']['enableDeprecationLog'] = FALSE;
$this->testGlobalNamespace = uniqid('TEST');
$GLOBALS[$this->testGlobalNamespace] = array();
(3-3/3)