Bug #28000

unit test for dbbackend sometimes throws this table does already exist

Added by Philipp Gampe almost 2 years ago. Updated almost 2 years ago.

Status:Resolved Start date:2011-07-08
Priority:Should have Due date:
Assignee:- % Done:

100%

Category:Unit Tests
Target version:-
TYPO3 Version:4.6 Complexity:
PHP Version:5.3
Votes: 0

Description

If running the unit tests for t3lib_cache_backend_dbbackentest, there are 8 sql warnings that the table already exits.

Solution: guard the create table with if not exits

Associated revisions

Revision beb99ace
Added by Philipp Gampe almost 2 years ago

[BUGFIX] Unit tests for dbbackend throw db errors

When running the unit test for t3lib_cache_backend_dbbackend
eight sql errors are thrown. This could happen if TYPO3_DB is
mocked.

Change-Id: Ie7c55321f2d7825e7af269515ea2b655b581e031
Resolves: #28000
Reviewed-on: http://review.typo3.org/3158
Reviewed-by: Philipp Gampe
Tested-by: Philipp Gampe
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn

History

Updated by Mr. Hudson almost 2 years ago

Patch set 1 of change Ie7c55321f2d7825e7af269515ea2b655b581e031 has been pushed to the review server.
It is available at http://review.typo3.org/3158

Updated by Mr. Hudson almost 2 years ago

Patch set 2 of change Ie7c55321f2d7825e7af269515ea2b655b581e031 has been pushed to the review server.
It is available at http://review.typo3.org/3158

Updated by Mr. Hudson almost 2 years ago

Patch set 3 of change Ie7c55321f2d7825e7af269515ea2b655b581e031 has been pushed to the review server.
It is available at http://review.typo3.org/3158

Updated by Philipp Gampe almost 2 years ago

  • Status changed from New to Resolved

Also available in: Atom PDF