Fixed bug #14079: Running the unit tests floods the deprecation log
[Packages/TYPO3.CMS.git] / tests / t3lib / matchcondition / t3lib_matchcondition_frontend_testcase.php
index 09b25c0..2e3502b 100644 (file)
@@ -163,6 +163,8 @@ class t3lib_matchCondition_frontend_testcase extends tx_phpunit_testcase {
         * @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');
@@ -181,6 +183,8 @@ class t3lib_matchCondition_frontend_testcase extends tx_phpunit_testcase {
         * @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');