Skip to content

Commit

Permalink
Avoiding the load of default connection in Sanitize test
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo committed May 27, 2011
1 parent 01f6744 commit faa8b3d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Cake/Test/Case/Utility/SanitizeTest.php
Expand Up @@ -170,12 +170,12 @@ function testClean() {

$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(
Expand All @@ -198,7 +198,7 @@ function testClean() {
)
)
);
$result = Sanitize::clean($data);
$result = Sanitize::clean($data, array('connection' => 'test'));
$this->assertEqual($result, $data);
}

Expand Down

0 comments on commit faa8b3d

Please sign in to comment.