Skip to content

Commit 98fcded

Browse files
Removed testNoDbCredentials() as it is no longer needed
1 parent bec4a39 commit 98fcded

File tree

1 file changed

+0
-35
lines changed

1 file changed

+0
-35
lines changed

tests/TestCase/Error/DebuggerTest.php

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -571,41 +571,6 @@ public function testGetInstance() {
571571
$this->assertInstanceOf('Cake\Error\Debugger', $result);
572572
}
573573

574-
/**
575-
* testNoDbCredentials
576-
*
577-
* If a connection error occurs, the config variable is passed through exportVar
578-
* *** our database login credentials such that they are never visible
579-
*
580-
* @return void
581-
*/
582-
public function testNoDbCredentials() {
583-
$config = array(
584-
'datasource' => 'mysql',
585-
'persistent' => false,
586-
'host' => 'void.cakephp.org',
587-
'login' => 'cakephp-user',
588-
'password' => 'cakephp-password',
589-
'database' => 'cakephp-database',
590-
'prefix' => ''
591-
);
592-
593-
$output = Debugger::exportVar($config);
594-
595-
$expectedArray = array(
596-
'datasource' => 'mysql',
597-
'persistent' => false,
598-
'host' => '*****',
599-
'login' => '*****',
600-
'password' => '*****',
601-
'database' => '*****',
602-
'prefix' => ''
603-
);
604-
$expected = Debugger::exportVar($expectedArray);
605-
606-
$this->assertEquals($expected, $output);
607-
}
608-
609574
/**
610575
* Test that exportVar() doesn't loop through recursive structures.
611576
*

0 commit comments

Comments
 (0)