Browse Source

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 years ago
parent
commit
1670d00452
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      tests/lib/DB/MigratorTest.php

+ 3
- 1
tests/lib/DB/MigratorTest.php 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
];
}


Loading…
Cancel
Save