Integer 0 is not stored as Null and therefor works
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
8b4ecdcc88
commit
1670d00452
|
@ -261,10 +261,12 @@ class MigratorTest extends \Test\TestCase {
|
||||||
return [
|
return [
|
||||||
[ParameterType::BOOLEAN, true, Types::BOOLEAN, false],
|
[ParameterType::BOOLEAN, true, Types::BOOLEAN, false],
|
||||||
[ParameterType::BOOLEAN, false, Types::BOOLEAN, true],
|
[ParameterType::BOOLEAN, false, Types::BOOLEAN, true],
|
||||||
|
|
||||||
[ParameterType::STRING, 'foo', Types::STRING, false],
|
[ParameterType::STRING, 'foo', Types::STRING, false],
|
||||||
[ParameterType::STRING, '', Types::STRING, true],
|
[ParameterType::STRING, '', Types::STRING, true],
|
||||||
|
|
||||||
[ParameterType::INTEGER, 1234, Types::INTEGER, false],
|
[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
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue