1
0
mirror of synced 2024-12-13 06:46:03 +03:00

test showing that using count() with enums does not work.

This commit is contained in:
pookey 2008-01-26 21:43:56 +00:00
parent f7d691a0aa
commit e280b4fbec

View File

@ -56,7 +56,28 @@ class Doctrine_DataType_Enum_TestCase extends Doctrine_UnitTestCase
}
}
public function testParameterConversionInCount()
{
try {
$query = new Doctrine_Query($this->connection);
$ret = $query->parseQuery("FROM EnumTest WHERE EnumTest.status = 'open'")
->count();
$this->assertEqual($ret, 1);
} catch (Exception $e) {
$this->fail();
}
try {
$query = new Doctrine_Query($this->connection);
$ret = $query->parseQuery("FROM EnumTest WHERE EnumTest.status = 'open'")
->count(array('open'));
$this->assertEqual($ret, 1);
} catch (Exception $e) {
$this->fail();
}
}
public function testInAndNotIn()
{