Commit e280b4fb authored by pookey's avatar pookey

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

parent f7d691a0
...@@ -56,7 +56,28 @@ class Doctrine_DataType_Enum_TestCase extends Doctrine_UnitTestCase ...@@ -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() public function testInAndNotIn()
{ {
......
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