Fixed some spelling mistakes that were causing errors when running tests via SapphireTest.

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@40167 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Matt Peel 2007-08-15 10:17:18 +00:00
parent 186e3466af
commit ae8da10aa9
2 changed files with 2 additions and 2 deletions

View File

@ -145,7 +145,7 @@ class MySQLDatabase extends Database {
*/ */
public function selectDatabase($dbname) { public function selectDatabase($dbname) {
$this->database = $dbname; $this->database = $dbname;
if($this->databaseExists($this->databse)) mysql_select_db($this->database, $this->dbConn); if($this->databaseExists($this->database)) mysql_select_db($this->database, $this->dbConn);
$this->tableList = $this->fieldList = $this->indexList = null; $this->tableList = $this->fieldList = $this->indexList = null;
} }

View File

@ -111,7 +111,7 @@ class SapphireTest extends PHPUnit_Framework_TestCase {
foreach($fields as $fieldName => $fieldVal) { foreach($fields as $fieldName => $fieldVal) {
// Parse a dictionary reference - used to set foreign keys // Parse a dictionary reference - used to set foreign keys
if(substr($fieldVal,0,2) == '=>') { if(substr($fieldVal,0,2) == '=>') {
$obj->$fieldName = $this->fixtureDicationary[ substr($fieldVal,2) ]; $obj->$fieldName = $this->fixtureDictionary[ substr($fieldVal,2) ];
// Regular field value setting // Regular field value setting
} else { } else {