From faa8b3d324edf6c2b1f20bed4778b8aa0f627b08 Mon Sep 17 00:00:00 2001 From: Jose Lorenzo Rodriguez Date: Fri, 27 May 2011 01:40:25 -0430 Subject: [PATCH] Avoiding the load of default connection in Sanitize test --- lib/Cake/Test/Case/Utility/SanitizeTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Cake/Test/Case/Utility/SanitizeTest.php b/lib/Cake/Test/Case/Utility/SanitizeTest.php index a27e7d472..3f8428d6a 100644 --- a/lib/Cake/Test/Case/Utility/SanitizeTest.php +++ b/lib/Cake/Test/Case/Utility/SanitizeTest.php @@ -170,12 +170,12 @@ class SanitizeTest extends CakeTestCase { $array = array(array('\\$', array('key' => 'test & "quote" \'other\' ;.$ \\$ symbol.' . "\r" . 'another line'))); $expected = array(array('$', array('key' => 'test & "quote" \'other\' ;.$ $ symbol.another line'))); - $result = Sanitize::clean($array, array('encode' => false, 'escape' => false)); + $result = Sanitize::clean($array, array('encode' => false, 'escape' => false, 'connection' => 'test')); $this->assertEqual($expected, $result); $string = ''; $expected = ''; - $result = Sanitize::clean($string); + $result = Sanitize::clean($string, array('connection' => 'test')); $this->assertEqual($string, $expected); $data = array( @@ -198,7 +198,7 @@ class SanitizeTest extends CakeTestCase { ) ) ); - $result = Sanitize::clean($data); + $result = Sanitize::clean($data, array('connection' => 'test')); $this->assertEqual($result, $data); }