浏览代码

Integer 0 is not stored as Null and therefor works

Signed-off-by: Joas Schilling <coding@schilljs.com>
tags/v22.0.0beta1
Joas Schilling 3 年前
父节点
当前提交
1670d00452
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3
    1
      tests/lib/DB/MigratorTest.php

+ 3
- 1
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
];
}


正在加载...
取消
保存