aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/DB/MDB2SchemaReaderTest.php
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2018-03-12 15:09:55 +0100
committerMorris Jobke <hey@morrisjobke.de>2018-03-12 17:45:49 +0100
commit2b335fd607e15c9955d6d42f50c460f04f7fe445 (patch)
treefe30052a2a6c01794f15c7c934bd23ff946028e9 /tests/lib/DB/MDB2SchemaReaderTest.php
parent3655951dd7372be9193e9ddd6f4b717f8d2cc6b4 (diff)
downloadnextcloud-server-2b335fd607e15c9955d6d42f50c460f04f7fe445.tar.gz
nextcloud-server-2b335fd607e15c9955d6d42f50c460f04f7fe445.zip
Use insertIfNotExist of the new interface
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'tests/lib/DB/MDB2SchemaReaderTest.php')
-rw-r--r--tests/lib/DB/MDB2SchemaReaderTest.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/lib/DB/MDB2SchemaReaderTest.php b/tests/lib/DB/MDB2SchemaReaderTest.php
index 3daf0dd7589..3b44f15f756 100644
--- a/tests/lib/DB/MDB2SchemaReaderTest.php
+++ b/tests/lib/DB/MDB2SchemaReaderTest.php
@@ -54,7 +54,7 @@ class MDB2SchemaReaderTest extends TestCase {
$this->assertCount(8, $table->getColumns());
$this->assertEquals(4, $table->getColumn('integerfield')->getLength());
- $this->assertFalse($table->getColumn('integerfield')->getAutoincrement());
+ $this->assertTrue($table->getColumn('integerfield')->getAutoincrement());
$this->assertEquals(0, $table->getColumn('integerfield')->getDefault());
$this->assertTrue($table->getColumn('integerfield')->getNotnull());
$this->assertInstanceOf('Doctrine\DBAL\Types\IntegerType', $table->getColumn('integerfield')->getType());