diff options
author | Joas Schilling <coding@schilljs.com> | 2021-04-15 09:53:11 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2021-04-16 09:57:27 +0200 |
commit | 1670d004529e5e17e0028394c4696baee21e2a53 (patch) | |
tree | 0a6b9ade9de7f25d2238f3883075759e1a28f421 /tests/lib/DB | |
parent | 8b4ecdcc88c0f14217fa6c64380646bda6f774cd (diff) | |
download | nextcloud-server-1670d004529e5e17e0028394c4696baee21e2a53.tar.gz nextcloud-server-1670d004529e5e17e0028394c4696baee21e2a53.zip |
Integer 0 is not stored as Null and therefor works
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'tests/lib/DB')
-rw-r--r-- | tests/lib/DB/MigratorTest.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/lib/DB/MigratorTest.php b/tests/lib/DB/MigratorTest.php index 75c1243bf88..114cf03d7be 100644 --- a/tests/lib/DB/MigratorTest.php +++ b/tests/lib/DB/MigratorTest.php @@ -261,10 +261,12 @@ class MigratorTest extends \Test\TestCase { return [ [ParameterType::BOOLEAN, true, Types::BOOLEAN, false], [ParameterType::BOOLEAN, false, Types::BOOLEAN, true], + [ParameterType::STRING, 'foo', Types::STRING, false], [ParameterType::STRING, '', Types::STRING, true], + [ParameterType::INTEGER, 1234, Types::INTEGER, false], - [ParameterType::INTEGER, 0, Types::INTEGER, true], + [ParameterType::INTEGER, 0, Types::INTEGER, false], // Integer 0 is not stored as Null and therefor works ]; } |