Fixed a testcase, support PostgreSQL 9.1

Signed-off-by: mark_story <mark@mark-story.com>
This commit is contained in:
Norio Suzuki 2012-02-24 19:05:08 +09:00 committed by mark_story
parent d577d6b84e
commit 757579e1d1

View file

@ -859,16 +859,16 @@ class PostgresTest extends CakeTestCase {
* @return void
*/
public function testEncoding() {
$result = $this->Dbo->setEncoding('utf8');
$result = $this->Dbo->setEncoding('UTF8');
$this->assertTrue($result) ;
$result = $this->Dbo->getEncoding();
$this->assertEquals('utf8', $result) ;
$this->assertEquals('UTF8', $result) ;
$result = $this->Dbo->setEncoding('EUC-JP');
$result = $this->Dbo->setEncoding('EUC_JP'); /* 'EUC_JP' is right character code name in PostgreSQL */
$this->assertTrue($result) ;
$result = $this->Dbo->getEncoding();
$this->assertEquals('EUC-JP', $result) ;
$this->assertEquals('EUC_JP', $result) ;
}
}