[BUGFIX] Fix warnings in db backend unit tests
authorChristian Kuhn <lolli@schwarzbu.ch>
Fri, 24 Jun 2011 22:03:18 +0000 (00:03 +0200)
committerSteffen Gebert <steffen.gebert@typo3.org>
Fri, 24 Jun 2011 22:24:08 +0000 (00:24 +0200)
Change-Id: I2e83a0ec6c81c07b0b051d7074ee2ac928a6beb5
Resolves: #27693
Reviewed-on: http://review.typo3.org/2922
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
Reviewed-by: Steffen Gebert
Tested-by: Steffen Gebert
tests/t3lib/cache/backend/class.t3lib_cache_backend_dbbackendTest.php

index a10a29b..86f5aa6 100644 (file)
@@ -525,8 +525,8 @@ class t3lib_cache_backend_DbBackendTest extends tx_phpunit_testcase {
                $backend = $this->setUpBackend();
                $this->setUpMockFrontendOfBackend($backend);
 
-               $GLOBALS['TYPO3_DB'] = $this->getMock('t3lib_DB', array('admin_query'));
-               $GLOBALS['TYPO3_DB']->expects($this->at(0))
+               $GLOBALS['TYPO3_DB'] = $this->getMock('t3lib_DB', array('exec_TRUNCATEquery', 'INSERTquery', 'sql_query', 'admin_query'));
+               $GLOBALS['TYPO3_DB']->expects($this->at(2))
                        ->method('admin_query')
                        ->with('DROP TABLE IF EXISTS cachingframework_Testing');
 
@@ -540,8 +540,8 @@ class t3lib_cache_backend_DbBackendTest extends tx_phpunit_testcase {
                $backend = $this->setUpBackend();
                $this->setUpMockFrontendOfBackend($backend);
 
-               $GLOBALS['TYPO3_DB'] = $this->getMock('t3lib_DB', array('admin_query'));
-               $GLOBALS['TYPO3_DB']->expects($this->at(1))
+               $GLOBALS['TYPO3_DB'] = $this->getMock('t3lib_DB', array('exec_TRUNCATEquery', 'INSERTquery', 'sql_query', 'admin_query'));
+               $GLOBALS['TYPO3_DB']->expects($this->at(3))
                        ->method('admin_query')
                        ->with('DROP TABLE IF EXISTS cachingframework_Testing_tags');
 
@@ -555,8 +555,8 @@ class t3lib_cache_backend_DbBackendTest extends tx_phpunit_testcase {
                $backend = $this->setUpBackend();
                $this->setUpMockFrontendOfBackend($backend);
 
-               $GLOBALS['TYPO3_DB'] = $this->getMock('t3lib_DB', array('admin_query'));
-               $GLOBALS['TYPO3_DB']->expects($this->at(2))
+               $GLOBALS['TYPO3_DB'] = $this->getMock('t3lib_DB', array('exec_TRUNCATEquery', 'INSERTquery', 'sql_query', 'admin_query'));
+               $GLOBALS['TYPO3_DB']->expects($this->at(4))
                        ->method('admin_query')
                        ->will($this->returnCallback(array($this, flushCreatesDataTableCallback)));
 
@@ -581,8 +581,8 @@ class t3lib_cache_backend_DbBackendTest extends tx_phpunit_testcase {
                $backend = $this->setUpBackend();
                $this->setUpMockFrontendOfBackend($backend);
 
-               $GLOBALS['TYPO3_DB'] = $this->getMock('t3lib_DB', array('admin_query'));
-               $GLOBALS['TYPO3_DB']->expects($this->at(3))
+               $GLOBALS['TYPO3_DB'] = $this->getMock('t3lib_DB', array('exec_TRUNCATEquery', 'INSERTquery', 'sql_query', 'admin_query'));
+               $GLOBALS['TYPO3_DB']->expects($this->at(5))
                        ->method('admin_query')
                        ->will($this->returnCallback(array($this, flushCreatesTagsTableCallback)));