From ff26cce361f123de7fa9f1bc9989bad88f19b7f3 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sun, 13 Dec 2015 11:12:03 -0500 Subject: Add new boolean value for CSV import --- tests/units/Core/CsvTest.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests/units/Core') diff --git a/tests/units/Core/CsvTest.php b/tests/units/Core/CsvTest.php index 7276de7f..da0be4a3 100644 --- a/tests/units/Core/CsvTest.php +++ b/tests/units/Core/CsvTest.php @@ -14,6 +14,10 @@ class CsvTest extends Base $this->assertEquals(1, Csv::getBooleanValue('TRUE')); $this->assertEquals(1, Csv::getBooleanValue('true')); $this->assertEquals(1, Csv::getBooleanValue('T')); + $this->assertEquals(1, Csv::getBooleanValue('Y')); + $this->assertEquals(1, Csv::getBooleanValue('y')); + $this->assertEquals(1, Csv::getBooleanValue('yes')); + $this->assertEquals(1, Csv::getBooleanValue('Yes')); $this->assertEquals(0, Csv::getBooleanValue('0')); $this->assertEquals(0, Csv::getBooleanValue('123')); -- cgit v1.2.3