[Pkg-owncloud-commits] [owncloud] 160/273: Added test for reserved keywords
David Prévot
taffit at moszumanska.debian.org
Fri Jul 4 03:13:12 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository owncloud.
commit e4f068961e828f6d09c7174f7a1a9ff83b62689e
Author: Vincent Petry <pvince81 at owncloud.com>
Date: Tue Jul 1 12:55:36 2014 +0200
Added test for reserved keywords
---
tests/lib/db/migrator.php | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
diff --git a/tests/lib/db/migrator.php b/tests/lib/db/migrator.php
index aa9c968..2e49086 100644
--- a/tests/lib/db/migrator.php
+++ b/tests/lib/db/migrator.php
@@ -138,4 +138,26 @@ class Migrator extends \PHPUnit_Framework_TestCase {
$this->assertTrue(true);
}
+
+ public function testReservedKeywords() {
+ $startSchema = new Schema(array(), array(), $this->getSchemaConfig());
+ $table = $startSchema->createTable($this->tableName);
+ $table->addColumn('id', 'integer', array('autoincrement' => true));
+ $table->addColumn('user', 'string', array('length' => 255));
+ $table->setPrimaryKey(array('id'));
+
+ $endSchema = new Schema(array(), array(), $this->getSchemaConfig());
+ $table = $endSchema->createTable($this->tableName);
+ $table->addColumn('id', 'integer', array('autoincrement' => true));
+ $table->addColumn('user', 'string', array('length' => 64));
+ $table->setPrimaryKey(array('id'));
+
+ $migrator = $this->manager->getMigrator();
+ $migrator->migrate($startSchema);
+
+ $migrator->checkMigrate($endSchema);
+ $migrator->migrate($endSchema);
+
+ $this->assertTrue(true);
+ }
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list