Browse Source

Removed testNoDbCredentials() as it is no longer needed

Robert 11 years ago
parent
commit
98fcded061
1 changed files with 0 additions and 35 deletions
  1. 0 35
      tests/TestCase/Error/DebuggerTest.php

+ 0 - 35
tests/TestCase/Error/DebuggerTest.php

@@ -572,41 +572,6 @@ TEXT;
 	}
 
 /**
- * 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.
  *
  * @return void