[FOLLOWUP][BUGFIX] DBAL: Repair AUTO_INCREMENT 90/36190/3
authorMarkus Klein <klein.t3@reelworx.at>
Thu, 22 Jan 2015 21:26:51 +0000 (22:26 +0100)
committerMarkus Klein <klein.t3@reelworx.at>
Thu, 22 Jan 2015 21:29:05 +0000 (22:29 +0100)
Fix broken unit tests.
The number of statements changed now as AUTO_INCREMENT
is supported.

Resolves: #63705
Releases: master, 6.2
Change-Id: I855b43b9dda599f5588abdebffb460e7819d2a82
Reviewed-on: http://review.typo3.org/36190
Reviewed-by: Markus Klein <klein.t3@reelworx.at>
Tested-by: Markus Klein <klein.t3@reelworx.at>
typo3/sysext/dbal/Tests/Unit/Database/DatabaseConnectionOracleTest.php

index ec25a16..7c21b31 100644 (file)
@@ -629,7 +629,7 @@ class DatabaseConnectionOracleTest extends AbstractTestCase {
                $this->assertTrue(is_array($components), 'Not an array: ' . $components);
                $sqlCommands = $this->subject->SQLparser->_call('compileCREATETABLE', $components);
                $this->assertTrue(is_array($sqlCommands), 'Not an array: ' . $sqlCommands);
-               $this->assertEquals(4, count($sqlCommands));
+               $this->assertEquals(6, count($sqlCommands));
                $expected = $this->cleanSql('
                        CREATE TABLE "tx_realurl_uniqalias" (
                                "uid" NUMBER(20) NOT NULL,
@@ -669,7 +669,7 @@ class DatabaseConnectionOracleTest extends AbstractTestCase {
                $this->assertTrue(is_array($components), 'Not an array: ' . $components);
                $sqlCommands = $this->subject->SQLparser->_call('compileCREATETABLE', $components);
                $this->assertTrue(is_array($sqlCommands), 'Not an array: ' . $sqlCommands);
-               $this->assertEquals(2, count($sqlCommands));
+               $this->assertEquals(4, count($sqlCommands));
                $expected = $this->cleanSql('
                        CREATE TABLE "tx_test" (
                                "uid" NUMBER(20) NOT NULL,
@@ -1059,4 +1059,4 @@ class DatabaseConnectionOracleTest extends AbstractTestCase {
                $this->assertEquals($expectedQuery, $this->cleanSql($result));
        }
 
-}
\ No newline at end of file
+}