[TASK] Extend Testbase to run functionals tests with multiple DB drivers 52/51152/13
authorManuel Selbach <manuel_selbach@yahoo.de>
Sun, 22 Jan 2017 06:06:55 +0000 (22:06 -0800)
committerChristian Kuhn <lolli@schwarzbu.ch>
Wed, 15 Feb 2017 13:07:38 +0000 (14:07 +0100)
commit35f4aa3ff65de6f355a5269b7a1a4ac6e3ab0371
treee43c873776e0f2f2609e902a789c0a229459551d
parentc2f47429d6c8606b64ebc80c5c5ccabf6d8d1d6b
[TASK] Extend Testbase to run functionals tests with multiple DB drivers

Implement Testbase::importXmlDatabaseFixtureFinisher to handle database
platform specific cleanup tasks for functional tests. For PostgreSQL
this will update the primary key sequences to the maximum value used
in the table to avoid key errors on subsquent inserts.

This patch doesn't fix all functional test to work on PostgreSQL, this
will follow in smaller, subsequent patches as many tests currently fail
due to database rows being returned in a different order as well as
due to different return types of the databases (i.e. int vs. string)
leading to failures when using assertSame().

Releases: master
Resolves: #79650
Change-Id: I8a08fc033b638eb66ca7655fdde4f311dd5982b2
Reviewed-on: https://review.typo3.org/51152
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Tested-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Reviewed-by: Thomas Hohn <thomas@hohn.dk>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
components/testing_framework/Classes/Core/Testbase.php