Commit efa4b3ca authored by František Bereň's avatar František Bereň Committed by lucasvanlierop

Update AbstractPostgreSqlPlatformTestCase.php

Updated test for uppercased values
parent c8b2bda5
......@@ -314,19 +314,30 @@ abstract class AbstractPostgreSqlPlatformTestCase extends AbstractPlatformTestCa
public function testConvertFromBoolean()
{
$platform = $this->createPlatform();
$this->assertFalse($platform->convertFromBoolean(false));
$this->assertFalse($platform->convertFromBoolean('false'));
$this->assertFalse($platform->convertFromBoolean('FALSE'));
$this->assertFalse($platform->convertFromBoolean('f'));
$this->assertFalse($platform->convertFromBoolean('F'));
$this->assertFalse($platform->convertFromBoolean('no'));
$this->assertFalse($platform->convertFromBoolean('NO'));
$this->assertFalse($platform->convertFromBoolean('n'));
$this->assertFalse($platform->convertFromBoolean('N'));
$this->assertFalse($platform->convertFromBoolean('off'));
$this->assertFalse($platform->convertFromBoolean('OFF'));
$this->assertFalse($platform->convertFromBoolean('0'));
$this->assertTrue($platform->convertFromBoolean(true));
$this->assertTrue($platform->convertFromBoolean('true'));
$this->assertTrue($platform->convertFromBoolean('TRUE'));
$this->assertTrue($platform->convertFromBoolean('t'));
$this->assertTrue($platform->convertFromBoolean('T'));
$this->assertTrue($platform->convertFromBoolean('yes'));
$this->assertTrue($platform->convertFromBoolean('YES'));
$this->assertTrue($platform->convertFromBoolean('y'));
$this->assertTrue($platform->convertFromBoolean('Y'));
$this->assertTrue($platform->convertFromBoolean('on'));
$this->assertTrue($platform->convertFromBoolean('ON'));
$this->assertTrue($platform->convertFromBoolean('1'));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment