diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2013-11-15 01:06:38 -0800 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2013-11-15 01:06:38 -0800 |
commit | 49e9f771ffb524e2aa30748837fd4fca9b42f700 (patch) | |
tree | f38e59bf66cac38b4c31f14049d964474b6e8d11 /tests | |
parent | 6ef39931cb484286e7bb7bcd8373060d3a8a5ffc (diff) | |
parent | 9c1c8d57f0ba8fb0d65c65141b8ffdf118bcc012 (diff) | |
download | nextcloud-server-49e9f771ffb524e2aa30748837fd4fca9b42f700.tar.gz nextcloud-server-49e9f771ffb524e2aa30748837fd4fca9b42f700.zip |
Merge pull request #5813 from owncloud/fix-4736-master
Don't set a default value when there isn't a default specified
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/db/mdb2schemareader.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/lib/db/mdb2schemareader.php b/tests/lib/db/mdb2schemareader.php index b9b241194fd..57cafa7c76b 100644 --- a/tests/lib/db/mdb2schemareader.php +++ b/tests/lib/db/mdb2schemareader.php @@ -57,13 +57,13 @@ class MDB2SchemaReader extends \PHPUnit_Framework_TestCase { $this->assertNull($table->getColumn('clobfield')->getLength()); $this->assertFalse($table->getColumn('clobfield')->getAutoincrement()); - $this->assertSame('', $table->getColumn('clobfield')->getDefault()); + $this->assertNull($table->getColumn('clobfield')->getDefault()); $this->assertTrue($table->getColumn('clobfield')->getNotnull()); $this->assertInstanceOf('Doctrine\DBAL\Types\TextType', $table->getColumn('clobfield')->getType()); $this->assertNull($table->getColumn('booleanfield')->getLength()); $this->assertFalse($table->getColumn('booleanfield')->getAutoincrement()); - $this->assertFalse($table->getColumn('booleanfield')->getDefault()); + $this->assertNull($table->getColumn('booleanfield')->getDefault()); $this->assertInstanceOf('Doctrine\DBAL\Types\BooleanType', $table->getColumn('booleanfield')->getType()); $this->assertTrue($table->getColumn('booleanfield_true')->getDefault()); |