From 3c6f85254cfec6f258d924e3af474b96fc9abe3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jose=CC=81=20Lorenzo=20Rodri=CC=81guez?= Date: Thu, 6 Jan 2011 00:19:22 -0430 Subject: [PATCH] Fixing translate behavior tests --- lib/Cake/tests/cases/libs/model/behaviors/translate.test.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Cake/tests/cases/libs/model/behaviors/translate.test.php b/lib/Cake/tests/cases/libs/model/behaviors/translate.test.php index bf83b6bff..292f0cdf0 100644 --- a/lib/Cake/tests/cases/libs/model/behaviors/translate.test.php +++ b/lib/Cake/tests/cases/libs/model/behaviors/translate.test.php @@ -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);