Fixing translate behavior tests

This commit is contained in:
José Lorenzo Rodríguez 2011-01-06 00:19:22 -04:30
parent caa29646ce
commit 3c6f85254c

View file

@ -432,7 +432,7 @@ class TranslateBehaviorTest extends CakeTestCase {
$this->assertEqual($result, $expected);
// MSSQL trigger an error and stops the page even if the debug = 0
if ($this->db->config['driver'] != 'mssql') {
if ($this->db instanceof Mssql) {
$debug = Configure::read('debug');
Configure::write('debug', 0);