Integer 0 is not stored as Null and therefor works

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2021-04-15 09:53:11 +02:00 committed by Roeland Jago Douma
parent 8b4ecdcc88
commit 1670d00452
1 changed files with 3 additions and 1 deletions

View File

@ -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
];
}