Skip to content

Commit

Permalink
Removed testNoDbCredentials() as it is no longer needed
Browse files Browse the repository at this point in the history
  • Loading branch information
robertpustulka committed Sep 8, 2014
1 parent bec4a39 commit 98fcded
Showing 1 changed file with 0 additions and 35 deletions.
35 changes: 0 additions & 35 deletions tests/TestCase/Error/DebuggerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -571,41 +571,6 @@ public function testGetInstance() {
$this->assertInstanceOf('Cake\Error\Debugger', $result);
}

/**
* testNoDbCredentials
*
* If a connection error occurs, the config variable is passed through exportVar
* *** our database login credentials such that they are never visible
*
* @return void
*/
public function testNoDbCredentials() {
$config = array(
'datasource' => 'mysql',
'persistent' => false,
'host' => 'void.cakephp.org',
'login' => 'cakephp-user',
'password' => 'cakephp-password',
'database' => 'cakephp-database',
'prefix' => ''
);

$output = Debugger::exportVar($config);

$expectedArray = array(
'datasource' => 'mysql',
'persistent' => false,
'host' => '*****',
'login' => '*****',
'password' => '*****',
'database' => '*****',
'prefix' => ''
);
$expected = Debugger::exportVar($expectedArray);

$this->assertEquals($expected, $output);
}

/**
* Test that exportVar() doesn't loop through recursive structures.
*
Expand Down

0 comments on commit 98fcded

Please sign in to comment.