Permalink
Browse files

Resetting the datestyle to not affect other tests

  • Loading branch information...
1 parent 489d1db commit accc98f55d7818f697f9712ce8132da726ce2d1a @jrbasso jrbasso committed Jun 25, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/Cake/Test/Case/Model/Datasource/Database/PostgresTest.php
@@ -1001,6 +1001,7 @@ public function testSettings() {
$expected = array(array('r' => date('d/m/Y')));
$r = $dbo2->fetchRow('SELECT now()::date AS "r"');
$this->assertEquals($expected, $r);
+ $dbo2->execute('SET DATESTYLE TO SQL');
$dbo2->disconnect();
}

0 comments on commit accc98f

Please sign in to comment.