Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Avoiding the load of default connection in Sanitize test

  • Loading branch information...
commit faa8b3d324edf6c2b1f20bed4778b8aa0f627b08 1 parent 01f6744
@lorenzo lorenzo authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/Cake/Test/Case/Utility/SanitizeTest.php
View
6 lib/Cake/Test/Case/Utility/SanitizeTest.php
@@ -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(
@@ -198,7 +198,7 @@ function testClean() {
)
)
);
- $result = Sanitize::clean($data);
+ $result = Sanitize::clean($data, array('connection' => 'test'));
$this->assertEqual($result, $data);
}
Please sign in to comment.
Something went wrong with that request. Please try again.